Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public interface IEnumerable<out T> : IEnumerable
Type Parameters
- T
- The type of objects to enumerate.This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
The IEnumerableT type exposes the following members.
Methods
| Name | Description |
---|
| GetEnumerator | Returns an enumerator that iterates through the collection. |
TopSee Also