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

哈希迭代器键的类型。The type of the hash iterator key.

TValue

哈希迭代器值的类型。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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于