[This is preliminary documentation and is subject to change.]

Author: Đonny

List that provides events when changed

Namespace: Tools.CollectionsT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[SerializableAttribute]
public class ListWithEvents<T> : ListWithEventsBase, 
	ISerializable, IList<T>
Visual Basic
<SerializableAttribute> _
Public Class ListWithEvents(Of T) _
	Inherits ListWithEventsBase _
	Implements ISerializable, IList(Of T)
Visual C++
[SerializableAttribute]
generic<typename T>
public ref class ListWithEvents : public ListWithEventsBase, 
	ISerializable, IList<T>
F#
[<SerializableAttribute>]
type ListWithEvents<'T> =  
    class
        inherit ListWithEventsBase
        interface ISerializable
        interface IList<'T>
    end
JScript
JScript does not support generic types or methods.

Type Parameters

T
Type of items to be stored in the list

Remarks

If item of type tha implements the IReportsChange interface is passed to this list, than it's events Changed are reported through ItemValueChanged event.

Implementation of interface IList is provided only in orer this class to be compatible with CollectionEditor.

Implementation fo IBindingList is only basic. It supports neither sorting or searching. AddNew()()()() is supported when T has default constructor and does not block creating of new instances in other way.

This class utilizes when item implements ICollectionNotifyItem or ICollectionCancelItem.

Inheritance Hierarchy

System..::..Object
  Tools.CollectionsT.GenericT..::..ListWithEventsBase
    Tools.CollectionsT.GenericT..::..ListWithEvents<(Of <(<'T>)>)>
      Tools.Experimental..::..CSV..::..ListInternal

See Also

Collapse/expand Version History

1.5.2

1.5.3