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: 10.5.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.

Extension Methods

AllFlagsDefined Gets whether every single bit value in flags are defined in the enum type of flags, or when flags is zero, it is checked whether zero is defined in the enum type of flags.
(Defined by EnumExtensions)
IsSingleFlag Gets whether only a single bit is set in value.
(Defined by EnumExtensions)

See Also