Struct FixedList4096Bytes<T>.Enumerator
An enumerator over the elements of a FixedList4096Bytes<T>.
Namespace: Unity.Collections
Syntax
public struct Enumerator : IEnumerator<T>, IDisposable, IEnumerator
Remarks
In an enumerator's initial state, Current
cannot be read. The first MoveNext() call advances the enumerator to the first element.
Constructors
Enumerator(ref FixedList4096Bytes<T>)
Initializes and returns an instance of FixedList4096Bytes<T>.
Declaration
public Enumerator(ref FixedList4096Bytes<T> list)
Parameters
Type | Name | Description |
---|---|---|
FixedList4096Bytes<T> | list | The list for which to create an enumerator. |
Properties
Current
The current element.
Declaration
public readonly T Current { get; }
Property Value
Type | Description |
---|---|
T | The current element. |
Methods
Dispose()
Does nothing.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next element.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean | True if Current is valid to read after the call. |
Reset()
Resets the enumerator to its initial state.
Declaration
public void Reset()