Compartir a través de


EmptyEnumerator Miembros

Acts as a placeholder when enumeration is called on an empty collection. The runtime returns the empty enumerator when there are no elements in the collection to enumerate over. This class cannot be inherited.

El tipo EmptyEnumerator expone los siguientes miembros.

Constructores

  Nombre Descripción
Método publico EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.

Principio

Métodos

  Nombre Descripción
Método publico Equals (Se hereda de Object).
Método protegido Finalize (Se hereda de Object).
Método publico GetHashCode (Se hereda de Object).
Método publico GetType (Se hereda de Object).
Método protegido MemberwiseClone (Se hereda de Object).
Método publico MoveNext Advances the enumerator to the next element of the collection. Returns false if there is no object to move to.
Método publico Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Método publico ToString (Se hereda de Object).

Principio

Propiedades

  Nombre Descripción
Propiedad pública Current Raises an error indicating an empty enumerator.

Principio