Method TryGetItem
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Core.Collections.dll
TryGetItem(TKey, out Item<TIdentity, TState>?)
Returns the two parts of the item for a key, when there is one.
public bool TryGetItem(TKey key, out Item<TIdentity, TState>? item)
Parameters
keyTKeyThe key to look up.
itemItem<TIdentity, TState>The item for that key, when this method returns true.
Returns
Remarks
This is a TryGet and not an optional value, because this assembly
does not reference SodaFlow.Functional. Each language wrapper adds a
Lookup above this method, and that Lookup answers with the
optional type of its language.