LockingCollectionTLock Method

Locks the access of the underlying collection from other threads until Unlock is called as many times as this method was called. Needed to be called if multiple calls to the wrapped collection have to be combined without releasing the lock between each calls.
See the Remarks section of the LockingCollectionT class for details and some examples.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public void Lock()

See Also