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, IEquatable<ReadOnlyListSpan<T>.Enumerator>
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
Equals(object)
Indicates whether the current object is equal to another object, which must be of the same type.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
Equals(Enumerator)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ReadOnlyListSpan<T>.Enumerator other)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlyListSpan<T>.Enumerator | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetHashCode()
Get a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
Overrides
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()