Documentation

Unity Engine

Unity Engine

UnsafeList<T>.Enumerator

An enumerator over the elements of a list.
Read time 1 minuteLast updated a month ago

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.