BindingListDisposeBehavior Enumeration

Represents disposing strategy for the wrapped collection and elements when a FastBindingListT instance is disposed.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public enum BindingListDisposeBehavior

Members

DisposeCollection0 Indicates that the wrapped collection should be disposed if it implements the IDisposable interface.
DisposeCollectionAndItems1 Indicates that the wrapped collection and the items should be disposed if they implement the IDisposable interface. Elements are never disposed when they are overwritten or removed, only when the parent FastBindingListT is disposed.
KeepAlive2 Indicates that neither the wrapped collection nor the items should be disposed when the parent FastBindingListT is disposed, in which case only the event subscriptions are removed.

See Also