Method TryDequeue
TryDequeue(out KeyValuePair<TKey, TValue>)
Removes the oldest entry in the collection based on the ordering supplied to the constructor.
Declaration
public bool TryDequeue(out KeyValuePair<TKey, TValue> value)
Parameters
Type | Name | Description |
---|---|---|
KeyValuePair<TKey, TValue> | value |
Returns
Type | Description |
---|---|
System.Boolean | False if no item was available |
TryDequeue(Predicate<KeyValuePair<TKey, TValue>>, out KeyValuePair<TKey, TValue>)
Removes the oldest entry in the collection based on the ordering supplied to the constructor.
Declaration
public bool TryDequeue(Predicate<KeyValuePair<TKey, TValue>> predicate, out KeyValuePair<TKey, TValue> value)
Parameters
Type | Name | Description |
---|---|---|
Predicate<KeyValuePair<TKey, TValue>> | predicate | |
KeyValuePair<TKey, TValue> | value |
Returns
Type | Description |
---|---|
System.Boolean | False if no item was available |