Struct ReadOnlyStructSpan<T>.Enumerator
Provides an enumerator for the elements of ReadOnlyStructSpan.
Inherited Members
Namespace: Unity.XR.CoreUtils.Collections
Assembly: Unity.XR.CoreUtils.dll
Syntax
public struct ReadOnlyStructSpan<T>.Enumerator : IEnumerator<T>, IEnumerator, IDisposable
Properties
Current
Gets the element in the collection at the current position of the enumerator.
Declaration
public T Current { get; }
Property Value
| Type | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown if the current position is outside the bounds of the ReadOnlyStructSpan. |
Methods
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool |
|
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()