Struct ReadOnlyListSpan<T>.Enumerator
Provides an enumerator for the elements of ReadOnlyListSpan
.
Inherited Members
Namespace: Unity.XR.CoreUtils.Collections
Assembly: Unity.XR.CoreUtils.dll
Syntax
public struct ReadOnlyListSpan<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 ReadOnlyListSpan. |
end
The exclusive end index of a slice of the list.
Declaration
public readonly int end { get; }
Property Value
Type | Description |
---|---|
int |
start
The inclusive start index of a slice of the list.
Declaration
public readonly int start { get; }
Property Value
Type | Description |
---|---|
int |
Methods
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | true if the next position is within the bounds of the list. Otherwise, false. |
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()