Enhanced C#
Language of your choice: library documentation
Public fields | Properties | Public Member Functions | Events | List of all members
Loyc.Collections.Impl.ListWithChangeEvents< T, TList > Class Template Reference

A list wrapper that provides ListChanging and ListChanged events. You can also implement custom behavior by overriding its methods. More...


Source file:
Inheritance diagram for Loyc.Collections.Impl.ListWithChangeEvents< T, TList >:
Loyc.Collections.Impl.ListWrapper< T, TList > Loyc.Collections.IListExWithChangeEvents< T > Loyc.Collections.Impl.CollectionWrapper< T, TList > Loyc.Collections.IListAndListSource< T > Loyc.Collections.IListEx< T > Loyc.Collections.IListWithChangeEvents< T > Loyc.Collections.INotifyListChanged< T > Loyc.Collections.INotifyListChanging< T > Loyc.Collections.IListAndListSource< T > Loyc.Collections.IListRangeMethods< T > Loyc.Collections.IArray< T > Loyc.Collections.ICollectionEx< T > Loyc.Collections.IListAndListSource< T > Loyc.Collections.ICollectionAndSource< T > Loyc.Collections.IListSource< T > Loyc.Collections.IListAndReadOnly< T >

Remarks

A list wrapper that provides ListChanging and ListChanged events. You can also implement custom behavior by overriding its methods.

See also
ListWrapper<TList,T>
Type Constraints
TList :IList<T> 

Public fields

bool IsEmpty => Count == 0
 
- Public fields inherited from Loyc.Collections.Impl.CollectionWrapper< T, TList >
virtual int Count
 
virtual bool IsReadOnly
 

Properties

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.IListEx< T >
new int Count [get]
 
- Properties inherited from Loyc.Collections.IIsEmpty
bool IsEmpty [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< T >
this[int index] [set]
 

Public Member Functions

 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 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 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...
 
- Public Member Functions inherited from Loyc.Collections.ICollectionSink< T >
void Clear ()
 
bool Remove (T item)
 
- Public Member Functions inherited from Loyc.Collections.IAddRange< T >
void AddRange (IEnumerable< T > e)
 
void AddRange (IReadOnlyCollection< T > s)
 
- Public Member Functions inherited from Loyc.Collections.IListRangeMethods< T >
void InsertRange (int index, IEnumerable< T > s)
 
void InsertRange (int index, IReadOnlyCollection< T > s)
 
void RemoveRange (int index, int amount)
 

Events

virtual ListChangingHandler< T, IListSource< T > > ListChanging
 
virtual ListChangingHandler< T, IListSource< T > > ListChanged
 

Additional Inherited Members

- Protected fields inherited from Loyc.Collections.Impl.CollectionWrapper< T, TList >
TCollection Collection