~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/Sharpen/Sharpen/WrappedSystemStream.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                public override long Seek (long offset, SeekOrigin origin)
65
65
                {
66
66
                        if (origin == SeekOrigin.Begin)
67
 
                                return Position = offset;
68
 
                        else
69
 
                                throw new NotSupportedException ();
 
67
                                Position = offset;
 
68
                        else if (origin == SeekOrigin.Current)
 
69
                                Position = Position + offset;
 
70
                        else if (origin == SeekOrigin.End)
 
71
                                Position = Length + offset;
 
72
                        return Position;
70
73
                }
71
74
 
72
75
                public override void SetLength (long value)