FileSystemEnumerator.NotSupported.cs 823 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. namespace System.IO.Enumeration
  3. {
  4. partial class FileSystemEnumerator<TResult>
  5. {
  6. public FileSystemEnumerator(string directory, EnumerationOptions options = null) { }
  7. bool IEnumerator.MoveNext() => throw new PlatformNotSupportedException ();
  8. private string _currentPath = null;
  9. private ICollection _pending = null;
  10. private TResult _current = default;
  11. #pragma warning disable 414
  12. private bool _lastEntryFound = false;
  13. private int _entry = 0;
  14. #pragma warning restore 414
  15. private void CloseDirectoryHandle() => throw new PlatformNotSupportedException ();
  16. private void DequeueNextDirectory() => throw new PlatformNotSupportedException ();
  17. private unsafe void FindNextEntry() => throw new PlatformNotSupportedException ();
  18. private void InternalDispose(bool disposing) { }
  19. }
  20. }