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()

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

(繼承來源 Object)

適用於