IImmutableDictionary<TKey, TValue>
public interface IImmutableDictionary<TKey, TValue> : IReadOnlyDictionary<TKey, TValue>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IReadOnlyCollection<KeyValuePair<TKey, TValue>>
Represents an immutable collection of key/value pairs.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Adds an element with the specified key and value to the dictionary.
Adds the specified key/value pairs to the dictionary.
Retrieves an empty dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
Determines whether the immutable dictionary contains the specified key/value pair.
Removes the element with the specified key from the immutable dictionary.
Removes the elements with the specified keys from the immutable dictionary.
Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.
Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.
Determines whether this dictionary contains a specified key.