Enhanced C#
Language of your choice: library documentation
|
Adapter: a read-only wrapper that implements IList(T) and IListSource(T), returned from LCExt.AsList<T>. More...
Adapter: a read-only wrapper that implements IList(T) and IListSource(T), returned from LCExt.AsList<T>.
Properties | |
T | this[int index] [get, set] |
int | Count [get] |
bool | IsReadOnly [get] |
Public Member Functions | |
ListSourceAsList (IListSource< T > obj) | |
int | IndexOf (T item) |
void | Insert (int index, T item) |
void | RemoveAt (int index) |
void | Add (T item) |
void | Clear () |
bool | Contains (T item) |
void | CopyTo (T[] array, int arrayIndex) |
Copies the elements of the collection to an Array, starting at a particular array index. More... | |
bool | Remove (T item) |
IEnumerator< T > | GetEnumerator () |
T | TryGet (int index, out bool fail) |
Slice_< T > | Slice (int start, int count) |
Public Member Functions inherited from Loyc.Collections.IListSource< T > | |
IRange< T > | Slice (int start, int count=int.MaxValue) |
Returns a sub-range of this list. More... | |
Public Member Functions inherited from Loyc.Collections.IContains< T > | |
bool | Contains (T item) |
Returns true if and only if the collection contains the specified item. More... | |
|
inline |
Copies the elements of the collection to an Array, starting at a particular array index.
It's usually more convenient to call the ToArray() extension method, which calls this method for you.
This method exists for performance reasons (the collection itself can often copy data out faster than an enumerator can).
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | arrayIndex is negative. |
ArgumentException | The number of elements in the source collection is greater than the available space from arrayIndex to the end of the destination array. |
Implements Loyc.Collections.ICollectionSource< T >.