|
Enhanced C#
Loyc library documentation
|
A list wrapper that provides ListChanging and ListChanged events. Shorthand for Loyc.Collections.Impl.ListWithChangeEvents{T,IList{T}}. More...
A list wrapper that provides ListChanging and ListChanged events. Shorthand for Loyc.Collections.Impl.ListWithChangeEvents{T,IList{T}}.
Public Member Functions | |
| ListWithChangeEvents (IList< T > wrappedObject) | |
Public Member Functions inherited from Loyc.Collections.Impl.ListWithChangeEvents< T, TList > | |
| ListWithChangeEvents (TList list) | |
| override void | Add (T item) |
| override void | Clear () |
| override bool | Remove (T item) |
| override void | Insert (int index, T item) |
| override void | RemoveAt (int index) |
| virtual void | AddRange (IEnumerable< T > list) |
| virtual void | AddRange (IReadOnlyCollection< T > list) |
| virtual void | InsertRange (int index, IEnumerable< T > list) |
| virtual void | InsertRange (int index, IReadOnlyCollection< T > list) |
| void | RemoveRange (int index, int amount) |
| virtual bool | TrySet (int index, T value) |
Public Member Functions inherited from Loyc.Collections.Impl.ListWrapper< T, TList > | |
| ListWrapper (TList wrappedObject) | |
| virtual int | IndexOf (T item) |
| virtual IListSource< T > | Slice (int start, int count=int.MaxValue) |
| Returns a sub-range of this list. More... | |
| virtual T | TryGet (int index, out bool fail) |
Public Member Functions inherited from Loyc.Collections.Impl.CollectionWrapper< T, TCollection > | |
| CollectionWrapper (TCollection collection) | |
| virtual bool | Contains (T item) |
| virtual void | CopyTo (T[] array, int arrayIndex) |
| virtual IEnumerator< T > | GetEnumerator () |
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... | |
Public Member Functions inherited from Loyc.Collections.ITryGet< in K, out V > | |
| 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... | |
Additional Inherited Members | |
Public fields inherited from Loyc.Collections.Impl.CollectionWrapper< T, TCollection > | |
| bool | IsEmpty => Count == 0 |
| virtual int | Count => _obj.Count |
| virtual bool | IsReadOnly => _obj.IsReadOnly |
Properties inherited from Loyc.Collections.Impl.ListWithChangeEvents< T, TList > | |
| override T | this[int index] [get, set] |
Properties inherited from Loyc.Collections.Impl.ListWrapper< T, TList > | |
| virtual T | this[int index] [get, set] |
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 > | |
| V | this[K key] [get] |
| Gets the value associated with the specified key. More... | |
Properties inherited from Loyc.Collections.IListEx< T > | |
| new int | Count [get] |
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 > | |
| T | this[int index] [set] |
Protected Member Functions inherited from Loyc.WrapperBase< T > | |
| WrapperBase (T wrappedObject) | |
Protected fields inherited from Loyc.Collections.Impl.CollectionWrapper< T, TCollection > | |
| TCollection | Collection => _obj |
Protected fields inherited from Loyc.WrapperBase< T > | |
| T | _obj |
Protected static fields inherited from Loyc.WrapperBase< T > | |
|
static readonly EqualityComparer< T > | TComp = EqualityComparer<T>.Default |
Events inherited from Loyc.Collections.Impl.ListWithChangeEvents< T, TList > | |
|
virtual ListChangingHandler< T, IListSource< T > > | ListChanging |
|
virtual ListChangingHandler< T, IListSource< T > > | ListChanged |
Events inherited from Loyc.Collections.INotifyListChanging< T, TCollection > | |
| ListChangingHandler< T, TCollection > | ListChanging |
| Occurs when the collection associated with this interface is about to change. More... | |
Events inherited from Loyc.Collections.INotifyListChanged< T, TCollection > | |
| ListChangingHandler< T, TCollection > | ListChanged |
| Occurs when the collection associated with this interface has changed. More... | |
1.8.7