共用方式為


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.

頂端