Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | List of all members
Loyc.Collections.IListEx< T > Interface Template Reference

This interface combines the original IList(T) interface with others - IListSource(T), ISinkList(T), IArray(T) - and some additional methods (e.g. RemoveAll, InsertRange). More...


Source file:
Inheritance diagram for Loyc.Collections.IListEx< T >:
Loyc.Collections.IListAndListSource< T > Loyc.Collections.ICollectionEx< T > Loyc.Collections.IArray< T > Loyc.Collections.IListRangeMethods< in T > Loyc.Collections.IAddRange< in T > Loyc.Collections.IIndexed< in K, out V > Loyc.Collections.IArraySink< in T > Loyc.Collections.IListSource< out T > Loyc.Collections.IIsEmpty Loyc.Collections.IAddRange< in T > Loyc.Collections.ICollectionImpl< T > Loyc.Collections.ICollectionAndSource< T > Loyc.Collections.IListSource< out T > Loyc.Collections.IListAndReadOnly< T > Loyc.Collections.AList< T > Loyc.Collections.DList< T > Loyc.Collections.IListExWithChangeEvents< T > Loyc.Collections.Impl.ListExBase< T > Loyc.Collections.ISparseListEx< T > Loyc.Collections.ReversedList< T > Loyc.Collections.SparseAList< T > Loyc.Collections.IndexedAList< T > Loyc.Collections.Impl.ListWithChangeEvents< T, TList > Loyc.Collections.SparseAList< T > Loyc.Collections.ListWithChangeEvents< T >

Remarks

This interface combines the original IList(T) interface with others - IListSource(T), ISinkList(T), IArray(T) - and some additional methods (e.g. RemoveAll, InsertRange).

IArray{T} (a version of IListSource{T} that adds the writability of an array) and IListSink{T} are largely subsets of the IList(T) interface. IListSource has a couple of methods that IList(T) does not, while ICollectionEx{T} adds RemoveAll and AddRange. Finally, IListRangeMethods{T} adds InsertRange and RemoveRange.

Using Impl.ListExBase{T} as your base class can help you implement this interface more easily.

Properties

new int Count [get]
 
- 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 >
this[K key] [get]
 Gets the value associated with the specified key. More...
 
- Properties inherited from Loyc.Collections.IArray< T >
new T this[int index] [get, set]
 Gets or sets an element of the array-like collection. More...
 
- Properties inherited from Loyc.Collections.IArraySink< in T >
this[int index] [set]
 

Additional Inherited Members

- 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 >
TryGet (K key, out bool fail)
 Gets the item for the specified key or index, and does not throw an exception on failure. More...
 
- Public Member Functions inherited from Loyc.Collections.ICollectionSource< T >
void CopyTo (T[] array, int arrayIndex)
 Copies the elements of the collection to an Array, starting at a particular array index. More...
 
- Public Member Functions inherited from Loyc.Collections.IContains< in T >
bool Contains (T item)
 Returns true if and only if the collection contains the specified item. More...
 
- Public Member Functions inherited from Loyc.Collections.ICollectionSink< in T >
void Clear ()
 
bool Remove (T item)
 
- Public Member Functions inherited from Loyc.Collections.IAdd< in T >
void Add (T item)
 
- Public Member Functions inherited from Loyc.Collections.IAddRange< in T >
void AddRange (IEnumerable< T > e)
 
void AddRange (IReadOnlyCollection< T > s)
 
- Public Member Functions inherited from Loyc.Collections.IArray< T >
bool TrySet (int index, T value)
 
- Public Member Functions inherited from Loyc.Collections.IListRangeMethods< in T >
void InsertRange (int index, IEnumerable< T > s)
 
void InsertRange (int index, IReadOnlyCollection< T > s)
 
void RemoveRange (int index, int amount)