Click or drag to resize

ConcurrentPriorityQueueTKey, TValueTryDequeueIf(FuncTKey, TValue, Boolean, TKey, TValue) Method

Dequeues the minimum key value if the predicate returns true for the minimum key and value. Returns true if the item was dequeued; otherwise, false.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public bool TryDequeueIf(
	Func<TKey, TValue, bool> predicate,
	out TKey key,
	out TValue value
)

Parameters

predicate  FuncTKey, TValue, Boolean
Predicate to test the minimum key and value.
key  TKey
The minimum key value, if found and dequeued.
value  TValue
The value associated with the minimum key, if found and dequeued.

Return Value

Boolean
True if the item was dequeued; otherwise, false.
See Also