System.Collections.Immutable.ImmutableDictionary
Provides a set of initialization methods for instances of the ImmutableDictionary<T, U> class.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
namespace System.Collections.Immutable
{
public static class ImmutableDictionary
{
public static ImmutableDictionary<TKey, TValue> Create<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>();
public static ImmutableDictionary<TKey, TValue> Create<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEqualityComparer<TKey> keyComparer);
public static ImmutableDictionary<TKey, TValue> Create<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEqualityComparer<TKey> keyComparer, IEqualityComparer<TValue> valueComparer);
public static ImmutableDictionary<TKey, TValue> CreateRange<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items);
public static ImmutableDictionary<TKey, TValue> CreateRangeWithOverwrite<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(ReadOnlySpan<KeyValuePair<TKey, TValue>> items);
public static ImmutableDictionary<TKey, TValue> CreateRange<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEqualityComparer<TKey> keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items);
public static ImmutableDictionary<TKey, TValue> CreateRangeWithOverwrite<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEqualityComparer<TKey> keyComparer, ReadOnlySpan<KeyValuePair<TKey, TValue>> items);
public static ImmutableDictionary<TKey, TValue> CreateRange<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEqualityComparer<TKey> keyComparer, IEqualityComparer<TValue> valueComparer, IEnumerable<KeyValuePair<TKey, TValue>> items);
public static ImmutableDictionary<TKey, TValue>.Builder CreateBuilder<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>();
public static ImmutableDictionary<TKey, TValue>.Builder CreateBuilder<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEqualityComparer<TKey> keyComparer);
public static ImmutableDictionary<TKey, TValue>.Builder CreateBuilder<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(IEqualityComparer<TKey> keyComparer, IEqualityComparer<TValue> valueComparer);
public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TValue> elementSelector, IEqualityComparer<TKey> keyComparer, IEqualityComparer<TValue> valueComparer);
public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this ImmutableDictionary<TKey, TValue>.Builder builder);
public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TValue> elementSelector, IEqualityComparer<TKey> keyComparer);
public static ImmutableDictionary<TKey, TSource> ToImmutableDictionary<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector);
public static ImmutableDictionary<TKey, TSource> ToImmutableDictionary<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> keyComparer);
public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TValue> elementSelector);
public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey> keyComparer, IEqualityComparer<TValue> valueComparer);
public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey> keyComparer);
public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source);
public static bool Contains<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IImmutableDictionary<TKey, TValue> map, TKey key, TValue value);
public static TValue GetValueOrDefault<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IImmutableDictionary<TKey, TValue> dictionary, TKey key);
public static TValue GetValueOrDefault<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IImmutableDictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue);
}
}