Table of Contents

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

key TKey

The key to look up.

item Item<TIdentity, TState>

The item for that key, when this method returns true.

Returns

bool

true when the key is available.

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.