VectorEnumeratorBase<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 VectorEnumeratorBase : System::Collections::IEnumerator
public class VectorEnumeratorBase<TValue> : System.Collections.IEnumerator
type VectorEnumeratorBase<'Value> = class
    interface IEnumerator
Public Class VectorEnumeratorBase(Of TValue)
Implements IEnumerator

类型参数

TValue

受控序列中的元素的类型。The type of an element in the controlled sequence.

继承
VectorEnumeratorBase<TValue>
派生
实现

构造函数

VectorEnumeratorBase<TValue>(IVector<TValue>, Int32)

分配并初始化新的 VectorEnumeratorBase<TValue> 对象。Allocates and initializes a new VectorEnumeratorBase<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)

适用于