Enhanced C#
Language of your choice: library documentation
|
This interface models the capabilities of an array: getting and setting elements by index, but not adding or removing elements. This interface is the counterpart to IListSource<T> for lists whose minimum index is not (necessarily) zero. More...
This interface models the capabilities of an array: getting and setting elements by index, but not adding or removing elements. This interface is the counterpart to IListSource<T> for lists whose minimum index is not (necessarily) zero.
Properties | |
new T | this[int index] [get, set] |
Gets or sets an element of the array-like collection. More... | |
Properties inherited from Loyc.Collections.INegListSource< T > | |
int | Min [get] |
Returns the minimum valid index in the collection. More... | |
int | Max [get] |
Returns the maximum valid index in the collection. More... | |
Public Member Functions | |
bool | TrySet (int index, T value) |
Public Member Functions inherited from Loyc.Collections.INegListSource< T > | |
IRange< T > | Slice (int start, int count=int.MaxValue) |
Returns a sub-range of this list. More... | |
|
getset |
Gets or sets an element of the array-like collection.
A redundant getter is required by C# because C# code is unable to use it (from a reference to INegArray<T>) otherwise.