Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | List of all members
Loyc.Collections.ListSourceAsList< T > Class Template Reference

Adapter: a read-only wrapper that implements IList(T) and IListSource(T), returned from LCExt.AsList<T>. More...


Source file:
Inheritance diagram for Loyc.Collections.ListSourceAsList< T >:
Loyc.Collections.IListAndListSource< T > Loyc.Collections.IListSource< T > Loyc.Collections.ICollectionAndReadOnly< T >

Remarks

Adapter: a read-only wrapper that implements IList(T) and IListSource(T), returned from LCExt.AsList<T>.

Properties

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)
 
bool Remove (T item)
 
IEnumerator< T > GetEnumerator ()
 
TryGet (int index, out bool fail)
 
Slice_< T > Slice (int start, int count)
 
- Public Member Functions inherited from Loyc.Collections.IListSource< T >
TryGet (int index, out bool fail)
 Gets the item at the specified index, and does not throw an exception on failure. More...
 
IRange< T > Slice (int start, int count=int.MaxValue)
 Returns a sub-range of this list. More...