Method TryGetNewState
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Core.Collections.dll
TryGetNewState(TKey, out TState?)
The state of the key after this change, when the collection has the key.
public bool TryGetNewState(TKey key, out TState? state)
Parameters
keyTKeyThe key to read.
stateTStateIts new state, when this method returns true.
Returns
- bool
true when this change gave the key a new state. For a key with a false answer, the change removed the key or did not name it. WasChanged(TKey) gives which one of the two occurred.