|
Enhanced C#
Loyc library documentation
|
This interface models the capabilities of an array: getting and setting elements by index, but not adding or removing elements. More...
This interface models the capabilities of an array: getting and setting elements by index, but not adding or removing elements.
Member list:
Properties | |
| new T | this[int index] [get, set] |
| Gets or sets an element of the array-like collection. More... | |
Properties inherited from Loyc.Collections.ISource< out T > | |
| new int | Count [get] |
| Gets the number of items in the collection. More... | |
Properties inherited from Loyc.Collections.ICount | |
| int | Count [get] |
| Gets the number of items in the collection. More... | |
Properties inherited from Loyc.Collections.IIsEmpty | |
| bool | IsEmpty [get] |
Properties inherited from Loyc.Collections.IIndexed< in K, out V > | |
| V | this[K key] [get] |
| Gets the value associated with the specified key. More... | |
Properties inherited from Loyc.Collections.IArraySink< in T > | |
| T | this[int index] [set] |
Public Member Functions | |
| bool | TrySet (int index, T value) |
Public Member Functions inherited from Loyc.Collections.IListSource< out T > | |
| IListSource< T > | Slice (int start, int count=int.MaxValue) |
| Returns a sub-range of this list. More... | |
Public Member Functions inherited from Loyc.Collections.ITryGet< in K, out V > | |
| V | TryGet (K key, out bool fail) |
| Gets the item for the specified key or index, and does not throw an exception on failure. More... | |
|
getset |
Gets or sets an element of the array-like collection.
This redundant indexer is required by C# because the compiler imagines that the setter in IArraySink{T} conflicts with the getter in IListSource{T}.
1.8.7