System.Collections.Immutable by Microsoft

<PackageReference Include="System.Collections.Immutable" Version="9.0.10" />

.NET API 259,336 bytes

 EmptyFrozenDictionary<TKey, TValue>

sealed class EmptyFrozenDictionary<TKey, TValue> : FrozenDictionary<TKey, TValue>
using System.Collections.Generic; using System.Runtime.CompilerServices; namespace System.Collections.Frozen { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1, 1 })] internal sealed class EmptyFrozenDictionary<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue> : FrozenDictionary<TKey, TValue> { private protected override TKey[] KeysCore => Array.Empty<TKey>(); private protected override TValue[] ValuesCore => Array.Empty<TValue>(); private protected override int CountCore => 0; internal EmptyFrozenDictionary(IEqualityComparer<TKey> comparer) : base(comparer) { } [return: System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1, 1 })] private protected override Enumerator GetEnumeratorCore() { return new Enumerator(Array.Empty<TKey>(), Array.Empty<TValue>()); } [return: System.Runtime.CompilerServices.IsReadOnly] private protected override ref TValue GetValueRefOrNullRefCore(TKey key) { return ref Unsafe.NullRef<TValue>(); } } }