HashEnumerator<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 HashEnumerator : Microsoft::VisualC::StlClr::HashEnumeratorBase<TKey, TValue>, System::Collections::Generic::IEnumerator<TValue>
public class HashEnumerator<TKey,TValue> : Microsoft.VisualC.StlClr.HashEnumeratorBase<TKey,TValue>, System.Collections.Generic.IEnumerator<TValue>
type HashEnumerator<'Key, 'Value> = class
inherit HashEnumeratorBase<'Key, 'Value>
interface IEnumerator<'Value>
Public Class HashEnumerator(Of TKey, TValue)
Inherits HashEnumeratorBase(Of TKey, TValue)
Implements IEnumerator(Of TValue)
类型参数
- TKey
哈希迭代器键的类型。The type of the hash iterator key.
- TValue
哈希迭代器值的类型。The type of the hash iterator value.
- 继承
- 实现
注解
有些方法(尤其是运算符)声明参数的类型,但不指定参数名称。Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. 此类参数称为“未命名参数”。Such a parameter is known as an unnamed parameter. 在这些方法的文档中,__unnamed0 占位符表示未命名参数。In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.
构造函数
| HashEnumerator<TKey,TValue>(INode<TValue>) |
分配并初始化新的 HashEnumerator<TKey,TValue> 对象。Allocates and initializes a new HashEnumerator<TKey,TValue> object. |
属性
| Current |
获取或设置集合中的当前元素。Gets or sets the current element in the collection. |
方法
| Dispose() |
释放或重置 HashEnumerator<TKey,TValue> 对象使用的非托管资源。Frees, releases, or resets unmanaged resources that are used by the HashEnumerator<TKey,TValue> object. |
| Dispose(Boolean) |
释放或重置 HashEnumerator<TKey,TValue> 对象使用的非托管资源。Frees, releases, or resets unmanaged resources that are used by the HashEnumerator<TKey,TValue> object. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets 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) |