文档

Unity Engine

Unity Engine

UnsafeList<T>.Enumerator

An enumerator over the elements of a list.
阅读时间1 分钟最后更新于 2 个月前

Definition

public struct UnsafeList<T>.Enumerator : IEnumerator<T>, IEnumerator, IDisposable

Remarks

In an enumerator's initial state, UnsafeList<T>.Enumerator.Current is invalid. The first UnsafeList<T>.Enumerator.MoveNext call advances the enumerator to the first element of the list.

Properties

Property

Description

CurrentThe current element.

Methods

Method

Description

DisposeDoes nothing.
MoveNextAdvances the enumerator to the next element of the list.
ResetResets the enumerator to its initial state.