Click or drag to resize
IEnumeratorT Interface
Supports a simple iteration over a generic collection.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public interface IEnumerator<out T> : IDisposable, 
	IEnumerator

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 IEnumeratorT type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodMoveNext
Advances the enumerator to the next element of the collection.
(Inherited from IEnumerator.)
Top
Properties
  NameDescription
Public propertyCurrent
Gets the element in the collection at the current position of the enumerator.
Top
See Also