IEnumerable.cs 662 B

1234567891011121314151617181920
  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. using System;
  5. using System.Runtime.InteropServices;
  6. namespace System.Collections
  7. {
  8. #if !PROJECTN // Hitting a bug in MCG, see VSO:743654
  9. [Guid("496B0ABE-CDEE-11d3-88E8-00902754C43A")]
  10. [ComVisible(true)]
  11. #endif
  12. public interface IEnumerable
  13. {
  14. // Returns an IEnumerator for this enumerable Object. The enumerator provides
  15. // a simple way to access all the contents of a collection.
  16. IEnumerator GetEnumerator();
  17. }
  18. }