Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.6.3-preview-636" />

 ExpandableArray<TKey, TItem>

class ExpandableArray<TKey, TItem> : ExpandableArray<KeyValue<TKey, TItem>>
public ExpandableArray()

public ExpandableArray(ExpandableArray<TKey, TItem> initial)

public void AddOrKeep(TKey item, TItem value)

public void AddOrUpdate(TKey key, TItem value)

public bool ContainsReference(TKey key)

public TItem GetOrDefaultByRef(TKey key)

public TItem GetOrDefaultByValue(TKey key)

public int IndexAndValueOf(TKey key, out TItem value)

public int IndexOf(TKey key)