Enhanced C#
Language of your choice: library documentation
|
A simple base class that to helps you implement a "smart" collection. By default, all it does is forward every method to the underlying collection (including GetHashCode, Equals and ToString). You can change its behavior by overriding methods. More...
A simple base class that to helps you implement a "smart" collection. By default, all it does is forward every method to the underlying collection (including GetHashCode, Equals and ToString). You can change its behavior by overriding methods.
This could be used, for example, to help you implement a collection that needs to take some kind of action whenever the collection is modified.
TList | : | IList<T> |
Properties | |
virtual T | this[int index] [get, set] |
Public Member Functions | |
ListWrapper (TList wrappedObject) | |
virtual void | Insert (int index, T item) |
virtual void | RemoveAt (int index) |
virtual int | IndexOf (T item) |
virtual IRange< T > | Slice (int start, int count=int.MaxValue) |
virtual T | TryGet (int index, out bool fail) |
Public Member Functions inherited from Loyc.Collections.Impl.CollectionWrapper< T, TList > | |
CollectionWrapper (TCollection collection) | |
virtual void | Add (T item) |
virtual void | Clear () |
virtual bool | Remove (T item) |
virtual bool | Contains (T item) |
virtual void | CopyTo (T[] array, int arrayIndex) |
virtual IEnumerator< T > | GetEnumerator () |
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.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< T > | |
bool | Contains (T item) |
Returns true if and only if the collection contains the specified item. More... | |
Additional Inherited Members | |
Public fields inherited from Loyc.Collections.Impl.CollectionWrapper< T, TList > | |
virtual int | Count |
virtual bool | IsReadOnly |
Protected fields inherited from Loyc.Collections.Impl.CollectionWrapper< T, TList > | |
TCollection | Collection |