Class ReadOnlyTrackingList<T>
public class ReadOnlyTrackingList<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
ReadOnlyTrackingList<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
ReadOnlyTrackingList(TrackingList<T>)
public ReadOnlyTrackingList(TrackingList<T> list)
Parameters
listTrackingList<T>
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
- int
The number of elements in the collection.
this[int]
Gets the element at the specified index in the read-only list.
public T this[int index] { get; set; }
Parameters
indexintThe zero-based index of the element to get.
Property Value
- T
The element at the specified index in the read-only list.
Methods
Contains(T)
public bool Contains(T item)
Parameters
itemT
Returns
CopyTo(T[], int)
public void CopyTo(T[] array, int arrayIndex)
Parameters
arrayT[]arrayIndexint
GetEnumerator()
public List<T>.Enumerator GetEnumerator()
Returns
- List<T>.Enumerator
IndexOf(T)
public int IndexOf(T item)
Parameters
itemT
Returns
ToArray()
public T[] ToArray()
Returns
- T[]
TryGet(int, out T?)
public bool TryGet(int index, out T? item)
Parameters
indexintitemT