singrdk/base/Applications/Runtime/Full/System/Collections/IEnumerable.cs

28 lines
968 B
C#
Raw Normal View History

2008-03-05 09:52:00 -05:00
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
2008-11-17 18:29:00 -05:00
//============================================================
//
// Interface: IEnumerable
//
// Purpose: Interface for classes providing IEnumerators
//
//===========================================================
namespace System.Collections
{
2008-03-05 09:52:00 -05:00
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();
}
}