public struct List<T>.Enumerator: IEnumerator<T>, IDisposable, IEnumerator
Object
ValueType
List<T>.EnumeratorThis type implements IDisposable, IEnumerator, and IEnumerator<T>.
mscorlib
BCL
Enumerates the elements of a List.
For information on the behavior of enumerators, see the Description section of IEnumerator<T>.Default implementations of collections in System.Collections.Generic are not synchronized.
This type is a member of type List<T>.
System.Collections.Generic Namespace
List<T>.Enumerator Methods
List<T>.Enumerator.Dispose Method
List<T>.Enumerator.MoveNext Method
List<T>.Enumerator.System.Collections.IEnumerator.Reset Method
List<T>.Enumerator Properties
List<T>.Enumerator.Current Property
List<T>.Enumerator.System.Collections.IEnumerator.Current Property
public void Dispose()
This method is implemented to support the IDisposable interface.
[Usage: Note to inheritors: System.Collections.Generic.List<T>.Enumerator.Dispose. can be called multiple times by other objects. When overriding this method, do not reference objects that have been previously disposed of in an earlier call to System.Collections.Generic.List<T>.Enumerator.Dispose.]
System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace
public bool MoveNext()
This method is implemented to support the IEnumerator and IEnumerator<T> interfaces.
System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace
void IEnumerator.Reset()
This method is implemented to support the IEnumerator interface.
System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace
public T Current { get; }
This read-only property is implemented to support the IEnumerator<T> interface.
System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace
object IEnumerator.Current { get; }
This read-only property is implemented to support the IEnumerator interface.
System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace