Initializes a new instance of the IndexedCollection<(Of <(<'T>)>)> class that contains elements copied from the specified list, and provides a custom PropertyChangeListener<(Of <(<'T>)>)>.

Namespace:  C1.LiveLinq.Collections
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public IndexedCollection(
	IList<T> list,
	PropertyChangeListener<T> itemPropertyChangeListener
)
Visual Basic
Public Sub New ( _
	list As IList(Of T), _
	itemPropertyChangeListener As PropertyChangeListener(Of T) _
)

Parameters

list
Type: System.Collections.Generic..::..IList<(Of <(<'T>)>)>
The collection whose elements are copied to the new instance.
itemPropertyChangeListener
Type: C1.LiveLinq.Listeners..::..PropertyChangeListener<(Of <(<'T>)>)>
The custom PropertyChangeListener<(Of <(<'T>)>)> to use with the collection.

Remarks

This constructor is intended for the rare cases where implementing INotifyPropertyChanged in the class of the elements of the collection is impossible

See Also