ReadOnlyList_T_.md
May 21, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
ReadOnlyList Struct
Represents a strongly typed readonly list of objects that can be accessed by index.
public struct ReadOnlyList<T> :
System.Collections.Generic.IReadOnlyList<T>,
System.Collections.Generic.IEnumerable<T>,
System.Collections.IEnumerable,
System.Collections.Generic.IReadOnlyCollection<T>
where T : class
Type parameters
T
Implements System.Collections.Generic.IReadOnlyList<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyCollection<T>
| Properties | |
|---|---|
| Count | Returns the number of elements contained in the list. |
| Span | Returns an System.ReadOnlySpan<> of the list elements. |
| this[int] | Gets the element at the specified index. |
| Methods | |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the list. |
| IndexOf(T) | Returns the zero-based index of the first occurrence of a value within the entire list. |
| ToString() |
| Explicit Interface Implementations | |
|---|---|
| System.Collections.Generic.IEnumerable<T>.GetEnumerator() | |
| System.Collections.IEnumerable.GetEnumerator() |