ObservableBindingListT(IListT) Constructor

Initializes a new instance of the ObservableBindingListT class with the specified list.


Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0
public ObservableBindingList(
	IList<T> list


list  IListT
An IListT of items to be contained in the ObservableBindingListT.


The list will be wrapped by the new ObservableBindingListT instance. Changes performed on the ObservableBindingListT will be reflected in the wrapped list as well.

If the wrapped list implements the INotifyCollectionChanged or IBindingList interface, then their CollectionChanged and ListChanged events will be captured and raised as self CollectionChanged and ListChanged events.


In an environment, which supports only the IBindingList or INotifyCollectionChanged interface but not the other, ObservableBindingListT can be used as a bridge between the two worlds. For example, by passing an ObservableCollectionT to the constructor, it will be able to be accessed as an IBindingList implementation, and vice-versa: by wrapping an IBindingList instance (such as FastBindingListT or SortableBindingListT), it can be used as an INotifyCollectionChanged implementation by the ObservableBindingListT class.

See Also