Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | List of all members
Loyc.Collections.ICollectionEx< T > Interface Template Reference

This interface combines the original ICollection(T) interface with IReadOnlyCollection(T), ISinkCollection(T), and IAddRange(T), a convenient way to implement all three. More...


Source file:
Inheritance diagram for Loyc.Collections.ICollectionEx< T >:
Loyc.Collections.ICollectionAndReadOnly< T > Loyc.Collections.ISinkCollection< T > Loyc.Collections.IAddRange< T > Loyc.Collections.IIsEmpty Loyc.Collections.IAdd< in T > Loyc.Collections.ICount Loyc.Collections.IIsEmpty Loyc.Collections.BDictionary< K, V > Loyc.Collections.BList< T > Loyc.Collections.IListEx< T > Loyc.Collections.ListSlice< T > Loyc.Collections.BMultiMap< K, V > Loyc.Collections.AList< T > Loyc.Collections.DList< T > Loyc.Collections.Impl.ListExBase< T > Loyc.Collections.ISparseListEx< T > Loyc.Collections.ReversedList< T > Loyc.Collections.SparseAList< T > Loyc.Collections.BMultiMap< K, V >.ValueList Loyc.Collections.BMultiMap< K, V >.ValueList Loyc.Collections.IndexedAList< T > Loyc.Collections.SparseAList< T >

Remarks

This interface combines the original ICollection(T) interface with IReadOnlyCollection(T), ISinkCollection(T), and IAddRange(T), a convenient way to implement all three.

IReadOnlyCollection(T) and ISinkCollection(T) are subsets of the ICollection(T) interface. ICollectionEx the following methods that ICollection(T) does not: AddRange() and RemoveAll().

Public Member Functions

int RemoveAll (Predicate< T > match)
 Removes the all the elements that match the conditions defined by the specified predicate. More...
 
- Public Member Functions inherited from Loyc.Collections.ISinkCollection< 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< T >
void AddRange (IEnumerable< T > e)
 
void AddRange (IReadOnlyCollection< T > s)
 

Additional Inherited Members

- 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]
 

Member Function Documentation

int Loyc.Collections.ICollectionEx< T >.RemoveAll ( Predicate< T >  match)

Removes the all the elements that match the conditions defined by the specified predicate.

Parameters
matchA delegate that defines the conditions of the elements to remove
Returns
The number of elements removed.

Implemented in Loyc.Collections.ListSlice< T >, Loyc.Collections.DList< T >, Loyc.Collections.ReversedList< T >, and Loyc.Collections.Impl.ListExBase< T >.