Поделиться через


Элементы 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.

Тип EmptyEnumerator предоставляет доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.

В начало

Методы

  Имя Описание
Открытый метод Equals (Наследуется из Object.)
Защищенный метод Finalize (Наследуется из Object.)
Открытый метод GetHashCode (Наследуется из Object.)
Открытый метод GetType (Наследуется из Object.)
Защищенный метод MemberwiseClone (Наследуется из Object.)
Открытый метод MoveNext Advances the enumerator to the next element of the collection. Returns false if there is no object to move to.
Открытый метод Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Открытый метод ToString (Наследуется из Object.)

В начало

Свойства

  Имя Описание
Открытое свойство Current Raises an error indicating an empty enumerator.

В начало