SeekOrigin.cs 520 B

12345678910111213141516
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.IO
  5. {
  6. // Provides seek reference points. To seek to the end of a stream,
  7. // call stream.Seek(0, SeekOrigin.End).
  8. public enum SeekOrigin
  9. {
  10. // These constants match Win32's FILE_BEGIN, FILE_CURRENT, and FILE_END
  11. Begin = 0,
  12. Current = 1,
  13. End = 2,
  14. }
  15. }