List.tryGetItem

bool tryGetItem(int index, out T result)

Reports whether the index is in range and writes the item to result. An item that is itself unspecified (a List<int?> entry) still counts as present.

Parameters

int
index

The index of the item to read.

out T
result

The item, or default when the index is negative or >= this.length.

Generated with campc 0.14.0-preview.1.