Partager via


Membres EmptyEnumerator

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.

Le type EmptyEnumerator expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (Hérité de Object.)
Méthode protégée Finalize (Hérité de Object.)
Méthode publique GetHashCode (Hérité de Object.)
Méthode publique GetType (Hérité de Object.)
Méthode protégée MemberwiseClone (Hérité de Object.)
Méthode publique MoveNext Advances the enumerator to the next element of the collection. Returns false if there is no object to move to.
Méthode publique Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Méthode publique ToString (Hérité de Object.)

Haut de la page

Propriétés

  Nom Description
Propriété publique Current Raises an error indicating an empty enumerator.

Haut de la page