singrdk/base/Kernel/System/Collections/IEnumerable.cs

30 lines
1001 B
C#

// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Interface: IEnumerable
**
**
** Purpose: Interface for classes providing IEnumerators
**
** Date: November 8, 1999
**
===========================================================*/
namespace System.Collections {
using System;
using System.Runtime.InteropServices;
// Implement this interface if you need to support VB's foreach semantics.
// Also, COM classes that support an enumerator will also implement this interface.
//| <include path='docs/doc[@for="IEnumerable"]/*' />
public interface IEnumerable
{
// Returns an IEnumerator for this enumerable Object. The enumerator provides
// a simple way to access all the contents of a collection.
//| <include path='docs/doc[@for="IEnumerable.GetEnumerator"]/*' />
IEnumerator GetEnumerator();
}
}