HashEnumeratorBase<TKey,TValue> 類別

定義

支援在任何實作 IHash<TKey,TValue> 介面的 STL/CLR 物件上進行簡單的反覆運算。Supports simple iteration over any STL/CLR object that implements the IHash<TKey,TValue> interface.

generic <typename TKey, typename TValue>
public ref class HashEnumeratorBase : System::Collections::IEnumerator
public class HashEnumeratorBase<TKey,TValue> : System.Collections.IEnumerator
type HashEnumeratorBase<'Key, 'Value> = class
    interface IEnumerator
Public Class HashEnumeratorBase(Of TKey, TValue)
Implements IEnumerator

類型參數

TKey

雜湊 Iterator 索引鍵的型別。The type of the hash iterator key.

TValue

雜湊 Iterator 值的型別。The type of the hash iterator value.

繼承
HashEnumeratorBase<TKey,TValue>
衍生
實作

建構函式

HashEnumeratorBase<TKey,TValue>(INode<TValue>)

配置並初始化新的 HashEnumeratorBase<TKey,TValue> 物件。Allocates and initializes a new HashEnumeratorBase<TKey,TValue> object.

屬性

Current

取得或設定集合中目前的項目。Gets or sets the current element in the collection.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MoveNext()

將列舉值設為集合中的下一個項目。Advances the enumerator to the next element in the collection.

Reset()

設定列舉值至它的初始位置,這是在集合中第一個項目之前。Sets the enumerator to its initial position, which is before the first element in the collection.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於