Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.17.0" />

 ReadOnlyKeyValue<TKey, TValue>

public struct ReadOnlyKeyValue<TKey, TValue>
using System.Diagnostics; using System.Runtime.CompilerServices; namespace Stashbox { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] [DebuggerDisplay("{Value}", Name = "{Key}")] public readonly struct ReadOnlyKeyValue<[System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue> { public readonly TKey Key; public readonly TValue Value; public ReadOnlyKeyValue(TKey key, TValue value) { Key = key; Value = value; } } }