System.Collections.Generic.List<T>.Enumerator Structure

public struct List<T>.Enumerator: IEnumerator<T>, IDisposable, IEnumerator

Base Types

Object
  ValueType
    List<T>.Enumerator

This type implements IDisposable, IEnumerator, and IEnumerator<T>.

Assembly

mscorlib

Library

BCL

Summary

Enumerates the elements of a List.

Description

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>.

See Also

System.Collections.Generic Namespace

Members

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


List<T>.Enumerator.Dispose Method

public void Dispose()

Summary

This method is implemented to support the IDisposable interface.

Description

[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.

]

See Also

System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace

List<T>.Enumerator.MoveNext Method

public bool MoveNext()

Summary

This method is implemented to support the IEnumerator and IEnumerator<T> interfaces.

See Also

System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace

List<T>.Enumerator.System.Collections.IEnumerator.Reset Method

void IEnumerator.Reset()

Summary

This method is implemented to support the IEnumerator interface.

See Also

System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace

List<T>.Enumerator.Current Property

public T Current { get; }

Summary

This read-only property is implemented to support the IEnumerator<T> interface.

See Also

System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace

List<T>.Enumerator.System.Collections.IEnumerator.Current Property

object IEnumerator.Current { get; }

Summary

This read-only property is implemented to support the IEnumerator interface.

See Also

System.Collections.Generic.List<T>.Enumerator Structure, System.Collections.Generic Namespace