ObservableBindingListTBlockReentrancy Method
Disallows reentrant attempts to change this collection.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
protected IDisposable BlockReentrancy()
Protected Function BlockReentrancy As IDisposable
protected:
IDisposable^ BlockReentrancy()
member BlockReentrancy : unit -> IDisposable
Return Value
IDisposableAn
IDisposable instance that can be used to create a block of protected scope.
Typical usage is to wrap event invocations with a
using scope:
using (BlockReentrancy())
{
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
}