ThreadSafeHashSetTTryRemove Method

Tries to remove the specified item from the ThreadSafeHashSetT.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public bool TryRemove(
	T item
)

Parameters

item  T
The element to remove.

Return Value

Boolean
if the element is successfully removed; otherwise, .

Remarks

This method is functionally the same as the Remove method. The only difference is that this method is not an interface implementation so using this one will not end up in a virtual method call, which provides a slightly better performance.

See Also