Table of Contents

Class ReadOnlyTrackingList<T>

Namespace
Uncreated.Warfare.Util.List
Assembly
Uncreated.Warfare.dll
public class ReadOnlyTrackingList<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
Inheritance
ReadOnlyTrackingList<T>
Implements
Inherited Members
Extension Methods

Constructors

ReadOnlyTrackingList(TrackingList<T>)

public ReadOnlyTrackingList(TrackingList<T> list)

Parameters

list TrackingList<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

index int

The 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

item T

Returns

bool

CopyTo(T[], int)

public void CopyTo(T[] array, int arrayIndex)

Parameters

array T[]
arrayIndex int

GetEnumerator()

public List<T>.Enumerator GetEnumerator()

Returns

List<T>.Enumerator

IndexOf(T)

public int IndexOf(T item)

Parameters

item T

Returns

int

ToArray()

public T[] ToArray()

Returns

T[]

TryGet(int, out T?)

public bool TryGet(int index, out T? item)

Parameters

index int
item T

Returns

bool