VectorEnumerator<TValue> Класс
Определение
Поддерживает простой перебор для любого объекта STL/CLR, который реализует интерфейс IVector<TValue>.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() |
Возвращает строку, представляющую текущий объект.Returns a string that represents the current object. (Унаследовано от Object) |