Interface IIdentity<TKey>
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Core.Collections.dll
An optional short path for an identity that holds its own key. Use this
interface, and the Create overloads of
ReactiveCollection read the key from the identity, and a
selector is not necessary.
[PublicAPI]
public interface IIdentity<out TKey> where TKey : notnull
Type Parameters
TKeyThe type of the key this identity carries.
- Extension Methods
Remarks
This interface is optional. The overloads with a selector on ReactiveCollection<TKey, TIdentity, TState> are the path for an identity type that cannot use an interface, or that must not use one. Examples are a record from a different assembly, and a record whose code calculates the key and does not hold it in a property.
Properties
- Key
The key derived from this identity.