Export (0) Print
Expand All

ImmutableDictionary<TKey, TValue> Methods

The ImmutableDictionary<TKey, TValue> type exposes the following members.

  Name Description
Public method Add Adds an element with the specified key and value to the immutable dictionary.
Public method AddRange Adds the specified key/value pairs to the immutable dictionary.
Public method Clear Retrieves an empty immutable dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
Public method Contains Determines whether this immutable dictionary contains the specified key/value pair.
Public method ContainsKey Determines whether the immutable dictionary contains an element with the specified key.
Public method ContainsValue Determines whether the immutable dictionary contains an element with the specified value.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the immutable dictionary.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Remove Removes the element with the specified key from the immutable dictionary.
Public method RemoveRange Removes the elements with the specified keys from the immutable dictionary.
Public method SetItem Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.
Public method SetItems Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.
Public method ToBuilder Creates an immutable dictionary with the same contents as this dictionary that can be efficiently mutated across multiple operations by using standard mutable interfaces.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetKey Determines whether this dictionary contains a specified key.
Public method TryGetValue Gets the value associated with the specified key.
Public method WithComparers(IEqualityComparer<TKey>) Gets an instance of the immutable dictionary that uses the specified key comparer.
Public method WithComparers(IEqualityComparer<TKey>, IEqualityComparer<TValue>) Gets an instance of the immutable dictionary that uses the specified key and value comparers.
Top

  Name Description
Public Extension Method ToImmutableDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) Overloaded. Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) Overloaded. Constructs an immutable dictionary based on some transformation of a sequence. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<KeyValuePair<TKey, TValue>, TKey, TValue>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<KeyValuePair<TKey, TValue>, TKey, TValue>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TValue>, IEqualityComparer<TKey>) Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableDictionary<KeyValuePair<TKey, TValue>, TKey, TValue>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers. (Defined by ImmutableDictionary.)
Public Extension Method ToImmutableHashSet<KeyValuePair<TKey, TValue>>() Overloaded. Enumerates a sequence and produces an immutable hash set of its contents. (Defined by ImmutableHashSet.)
Public Extension Method ToImmutableHashSet<KeyValuePair<TKey, TValue>>(IEqualityComparer<KeyValuePair<TKey, TValue>>) Overloaded. Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type. (Defined by ImmutableHashSet.)
Public Extension Method ToImmutableList<KeyValuePair<TKey, TValue>> Enumerates a sequence and produces an immutable list of its contents. (Defined by ImmutableList.)
Public Extension Method ToImmutableSortedDictionary<KeyValuePair<TKey, TValue>, TKey, TValue>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents. (Defined by ImmutableSortedDictionary.)
Public Extension Method ToImmutableSortedDictionary<KeyValuePair<TKey, TValue>, TKey, TValue>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TValue>, IComparer<TKey>) Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer. (Defined by ImmutableSortedDictionary.)
Public Extension Method ToImmutableSortedDictionary<KeyValuePair<TKey, TValue>, TKey, TValue>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TValue>, IComparer<TKey>, IEqualityComparer<TValue>) Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers. (Defined by ImmutableSortedDictionary.)
Public Extension Method ToImmutableSortedSet<KeyValuePair<TKey, TValue>>() Overloaded. Enumerates a sequence and produces an immutable sorted set of its contents. (Defined by ImmutableSortedSet.)
Public Extension Method ToImmutableSortedSet<KeyValuePair<TKey, TValue>>(IComparer<KeyValuePair<TKey, TValue>>) Overloaded. Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer. (Defined by ImmutableSortedSet.)
Top

  Name Description
Explicit interface implemetation Private method ICollection<KeyValuePair<TKey, TValue>>.Add Adds the specified value to the collection.
Explicit interface implemetation Private method IDictionary<TKey, TValue>.Add Adds an element with the provided key and value to the immutable dictionary.
Explicit interface implemetation Private method IDictionary.Add Adds an element with the provided key and value to the immutable dictionary object.
Explicit interface implemetation Private method ICollection<KeyValuePair<TKey, TValue>>.Clear Removes all the items from the collection.
Explicit interface implemetation Private method IDictionary.Clear Clears this instance.
Explicit interface implemetation Private method IDictionary.Contains Determines whether the immutable dictionary object contains an element with the specified key.
Explicit interface implemetation Private method ICollection<KeyValuePair<TKey, TValue>>.CopyTo Copies the elements of the collection to an Array, starting at a particular Array index.
Explicit interface implemetation Private method ICollection.CopyTo Copies the elements of the dictionary to an array, starting at a particular array index.
Explicit interface implemetation Private method IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implemetation Private method IDictionary.GetEnumerator Returns an IDictionaryEnumerator object for the immutable dictionary object.
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implemetation Private method ICollection<KeyValuePair<TKey, TValue>>.Remove Removes the first occurrence of a specific object from the immutable dictionary.
Explicit interface implemetation Private method IDictionary<TKey, TValue>.Remove Removes the element with the specified key from the immutable dictionary.
Explicit interface implemetation Private method IDictionary.Remove Removes the element with the specified key from the immutable dictionary object.
Explicit interface implemetation Private method IImmutableDictionary<TKey, TValue>.Add Adds an element with the specified key and value to the immutable dictionary.
Explicit interface implemetation Private method IImmutableDictionary<TKey, TValue>.AddRange Adds the specified key/value pairs to the immutable dictionary.
Explicit interface implemetation Private method IImmutableDictionary<TKey, TValue>.Clear Retrieves an empty dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
Explicit interface implemetation Private method IImmutableDictionary<TKey, TValue>.Remove Removes the element with the specified key from the immutable dictionary.
Explicit interface implemetation Private method IImmutableDictionary<TKey, TValue>.RemoveRange Removes the elements with the specified keys from the immutable dictionary.
Explicit interface implemetation Private method IImmutableDictionary<TKey, TValue>.SetItem Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.
Explicit interface implemetation Private method IImmutableDictionary<TKey, TValue>.SetItems Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.
Top
Show:
© 2014 Microsoft