IResourceReader.cs 848 B

1234567891011121314151617181920212223242526272829
  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. /*============================================================
  5. **
  6. **
  7. **
  8. **
  9. **
  10. ** Purpose: Abstraction to read streams of resources.
  11. **
  12. **
  13. ===========================================================*/
  14. using System.Collections;
  15. namespace System.Resources
  16. {
  17. public interface IResourceReader : IEnumerable, IDisposable
  18. {
  19. // Interface does not need to be marked with the serializable attribute
  20. // Closes the ResourceReader, releasing any resources associated with it.
  21. // This could close a network connection, a file, or do nothing.
  22. void Close();
  23. new IDictionaryEnumerator GetEnumerator();
  24. }
  25. }