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

Helps implement extension method ListExt.AsSink{T}(ICollection{T}). More...


Source file:
Inheritance diagram for Loyc.Collections.CollectionAsSink< T, List >:
Loyc.WrapperBase< T > Loyc.Collections.ICollectionSink< in T > Loyc.Collections.IAdd< in T > Loyc.Collections.DictionaryAsSink< K, V, Dict > Loyc.Collections.ListAsSink< T, List >

Remarks

Helps implement extension method ListExt.AsSink{T}(ICollection{T}).

Type Constraints
List :ICollection<T> 

Public Member Functions

 CollectionAsSink (List list)
 
void Add (T item)
 
void Clear ()
 
bool Remove (T item)
 
- Public Member Functions inherited from Loyc.WrapperBase< T >
override bool Equals (object?obj)
 Returns true iff the parameter 'obj' is a wrapper around an object that is equal to the object that this object wraps. More...
 
override int GetHashCode ()
 Returns the hashcode of the wrapped object. More...
 
override string ToString ()
 Returns ToString() of the wrapped object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Loyc.WrapperBase< T >
 WrapperBase (T wrappedObject)
 
- Protected fields inherited from Loyc.WrapperBase< T >
_obj
 
- Protected static fields inherited from Loyc.WrapperBase< T >
static readonly
EqualityComparer< T > 
TComp = EqualityComparer<T>.Default