VectorEnumerator<TValue> 类
定义
支持对实现 IVector<TValue> 接口的任何 STL/CLR 对象执行简单迭代。Supports simple iteration over any STL/CLR object that implements the IVector<TValue> interface.
generic <typename TValue>
public ref class VectorEnumerator : Microsoft::VisualC::StlClr::VectorEnumeratorBase<TValue>, System::Collections::Generic::IEnumerator<TValue>
public class VectorEnumerator<TValue> : Microsoft.VisualC.StlClr.VectorEnumeratorBase<TValue>, System.Collections.Generic.IEnumerator<TValue>
type VectorEnumerator<'Value> = class
inherit VectorEnumeratorBase<'Value>
interface IEnumerator<'Value>
Public Class VectorEnumerator(Of TValue)
Inherits VectorEnumeratorBase(Of TValue)
Implements IEnumerator(Of TValue)
类型参数
- TValue
受控序列中的元素的类型。The type of an element in the controlled sequence.
- 继承
- 实现
注解
有些方法(尤其是运算符)声明参数的类型,但不指定参数名称。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.
构造函数
VectorEnumerator<TValue>(IVector<TValue>, Int32) |
分配并初始化新的 VectorEnumerator<TValue> 对象。Allocates and initializes a new VectorEnumerator<TValue> object. |
属性
Current |
获取或设置集合中的当前元素。Gets or sets the current element in the collection. |
方法
Dispose() |
释放或重置 VectorEnumerator<TValue> 对象使用的非托管资源。Frees, releases, or resets unmanaged resources that are used by the VectorEnumerator<TValue> object. |
Dispose(Boolean) |
释放或重置 VectorEnumerator<TValue> 对象使用的非托管资源。Frees, releases, or resets unmanaged resources that are used by the VectorEnumerator<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() |
返回一个表示当前对象的 string。Returns a string that represents the current object. (继承自 Object) |