<PackageReference Include="System.ClientModel" Version="1.6.1" />

ArrayBackedPropertyBag<TKey, TValue>

struct ArrayBackedPropertyBag<TKey, TValue> where TKey : struct, IEquatable<TKey>
A property bag which is optimized for storage of a small number of items. If the item count is less than 2, there are no allocations. Any additional items are stored in an array which will grow as needed. MUST be passed by ref only.
public int Count { get; }

public bool IsEmpty { get; }

public void Dispose()

public void GetAt(int index, out TKey key, out TValue value)

public void Set(TKey key, TValue value)

public bool TryAdd(TKey key, TValue value, out TValue existingValue)

public bool TryGetValue(TKey key, out TValue value)

public bool TryRemove(TKey key)