ImmutableSortedDictionary(Of TKey, TValue) Class

 

Represents an immutable sorted dictionary.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

System.Object
  System.Collections.Immutable.ImmutableSortedDictionary(Of TKey, TValue)

<DefaultMemberAttribute("Item")>
<DebuggerDisplayAttribute("Count = {Count}")>
Public NotInheritable Class ImmutableSortedDictionary(Of TKey, TValue)
	Implements IImmutableDictionary(Of TKey, TValue), IReadOnlyDictionary(Of TKey, TValue),
	IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)), IEnumerable(Of KeyValuePair(Of TKey, TValue)),
	IEnumerable, IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)),
	IDictionary, ICollection

Type Parameters

TKey

The type of the key contained in the dictionary.

TValue

The type of the value contained in the dictionary.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of key/value pairs in the immutable sorted dictionary.

System_CAPS_pubpropertyIsEmpty

Gets a value that indicates whether this instance of the immutable sorted dictionary is empty.

System_CAPS_pubpropertyItem(TKey)

Gets the TValue associated with the specified key.

System_CAPS_pubpropertyKeyComparer

Gets the key comparer for the immutable sorted dictionary.

System_CAPS_pubpropertyKeys

Gets the keys in the immutable sorted dictionary.

System_CAPS_pubpropertyValueComparer

Gets the value comparer used to determine whether values are equal.

System_CAPS_pubpropertyValues

Gets the values in the immutable sorted dictionary.

NameDescription
System_CAPS_pubmethodAdd(TKey, TValue)

Adds an element with the specified key and value to the immutable sorted dictionary.

System_CAPS_pubmethodAddRange(IEnumerable(Of KeyValuePair(Of TKey, TValue)))

Adds the specific key/value pairs to the immutable sorted dictionary.

System_CAPS_pubmethodClear()

Retrieves an empty immutable sorted dictionary that has the same ordering and key/value comparison rules as this dictionary instance.

System_CAPS_pubmethodContains(KeyValuePair(Of TKey, TValue))

Determines whether this immutable sorted dictionary contains the specified key/value pair.

System_CAPS_pubmethodContainsKey(TKey)

Determines whether this immutable sorted map contains the specified key.

System_CAPS_pubmethodContainsValue(TValue)

Determines whether the immutable sorted dictionary contains an element with the specified value.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the immutable sorted dictionary.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRemove(TKey)

Removes the element with the specified value from the immutable sorted dictionary.

System_CAPS_pubmethodRemoveRange(IEnumerable(Of TKey))

Removes the elements with the specified keys from the immutable sorted dictionary.

System_CAPS_pubmethodSetItem(TKey, TValue)

Sets the specified key and value in the immutable sorted dictionary, possibly overwriting an existing value for the given key.

System_CAPS_pubmethodSetItems(IEnumerable(Of KeyValuePair(Of TKey, TValue)))

Sets the specified key/value pairs in the immutable sorted dictionary, possibly overwriting existing values for the keys.

System_CAPS_pubmethodToBuilder()

Creates an immutable sorted dictionary with the same contents as this dictionary that can be efficiently mutated across multiple operations by using standard mutable interfaces.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetKey(TKey, TKey)

Determines whether this dictionary contains a specified key.

System_CAPS_pubmethodTryGetValue(TKey, TValue)

Gets the value associated with the specified key.

System_CAPS_pubmethodWithComparers(IComparer(Of TKey))

Gets an instance of the immutable sorted dictionary that uses the specified key comparer.

System_CAPS_pubmethodWithComparers(IComparer(Of TKey), IEqualityComparer(Of TValue))

Gets an instance of the immutable sorted dictionary that uses the specified key and value comparers.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticEmpty

Gets an empty immutable sorted dictionary.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection(Of KeyValuePair(Of TKey, TValue)).Add(KeyValuePair(Of TKey, TValue))

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection(Of KeyValuePair(Of TKey, TValue)).Clear()

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo(KeyValuePair(Of TKey, TValue)(), Int32)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection(Of KeyValuePair(Of TKey, TValue)).Remove(KeyValuePair(Of TKey, TValue))

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary(Of TKey, TValue).Add(TKey, TValue)

Adds an element with the provided key and value to the immutable dictionary.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary(Of TKey, TValue).Remove(TKey)

Removes the element with the specified key from the immutable dictionary.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable(Of KeyValuePair(Of TKey, TValue)).GetEnumerator()

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

Copies the elements of the dictionary to an array, starting at a particular array index.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.Add(Object, Object)

Adds an element with the provided key and value to the dictionary object.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.Clear()

Clears this instance.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.Contains(Object)

Determines whether the immutable dictionary object contains an element with the specified key.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.GetEnumerator()

Returns an IDictionaryEnumerator object for the immutable dictionary object.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.Remove(Object)

Removes the element with the specified key from the immutable dictionary object.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableDictionary(Of TKey, TValue).Add(TKey, TValue)

Adds an element with the specified key and value to the immutable dictionary.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableDictionary(Of TKey, TValue).AddRange(IEnumerable(Of KeyValuePair(Of TKey, TValue)))

Adds the specified key/value pairs to the immutable dictionary.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableDictionary(Of TKey, TValue).Clear()

Retrieves an empty dictionary that has the same ordering and key/value comparison rules as this dictionary instance.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableDictionary(Of TKey, TValue).Remove(TKey)

Removes the element with the specified key from the immutable dictionary.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableDictionary(Of TKey, TValue).RemoveRange(IEnumerable(Of TKey))

Removes the elements with the specified keys from the immutable dictionary.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableDictionary(Of TKey, TValue).SetItem(TKey, TValue)

Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIImmutableDictionary(Of TKey, TValue).SetItems(IEnumerable(Of KeyValuePair(Of TKey, TValue)))

Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection(Of KeyValuePair(Of TKey, TValue)).IsReadOnly

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary(Of TKey, TValue).Item(TKey)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary(Of TKey, TValue).Keys

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary(Of TKey, TValue).Values

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary.IsFixedSize

Gets a value indicating whether the IDictionary object has a fixed size.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary.IsReadOnly

Gets a value indicating whether the ICollection(Of T) is read-only.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary.Item(Object)

Gets or sets the element with the specified key.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary.Keys

Gets an ICollection(Of T) containing the keys of the IDictionary(Of TKey, TValue).

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDictionary.Values

Gets an ICollection(Of T) containing the values in the IDictionary(Of TKey, TValue).

NameDescription
System_CAPS_pubmethodToImmutableArray(Of KeyValuePair(Of TKey, TValue))()

Creates an immutable array from the specified collection.(Defined by ImmutableArray.)

System_CAPS_pubmethodToImmutableDictionary(Of KeyValuePair(Of TKey, TValue), TKey)(Func(Of KeyValuePair(Of 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.)

System_CAPS_pubmethodToImmutableDictionary(Of KeyValuePair(Of TKey, TValue), TKey)(Func(Of KeyValuePair(Of TKey, TValue), TKey), IEqualityComparer(Of TKey))

Overloaded. Constructs an immutable dictionary based on some transformation of a sequence.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableDictionary(Of KeyValuePair(Of TKey, TValue), TKey, TValue)(Func(Of KeyValuePair(Of TKey, TValue), TKey), Func(Of KeyValuePair(Of TKey, TValue), TValue))

Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableDictionary(Of KeyValuePair(Of TKey, TValue), TKey, TValue)(Func(Of KeyValuePair(Of TKey, TValue), TKey), Func(Of KeyValuePair(Of TKey, TValue), TValue), IEqualityComparer(Of TKey))

Overloaded. Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer.(Defined by ImmutableDictionary.)

System_CAPS_pubmethodToImmutableDictionary(Of KeyValuePair(Of TKey, TValue), TKey, TValue)(Func(Of KeyValuePair(Of TKey, TValue), TKey), Func(Of KeyValuePair(Of TKey, TValue), TValue), IEqualityComparer(Of TKey), IEqualityComparer(Of 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.)

System_CAPS_pubmethodToImmutableHashSet(Of KeyValuePair(Of TKey, TValue))()

Overloaded. Enumerates a sequence and produces an immutable hash set of its contents.(Defined by ImmutableHashSet.)

System_CAPS_pubmethodToImmutableHashSet(Of KeyValuePair(Of TKey, TValue))(IEqualityComparer(Of KeyValuePair(Of 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.)

System_CAPS_pubmethodToImmutableList(Of KeyValuePair(Of TKey, TValue))()

Enumerates a sequence and produces an immutable list of its contents.(Defined by ImmutableList.)

System_CAPS_pubmethodToImmutableSortedDictionary(Of KeyValuePair(Of TKey, TValue), TKey, TValue)(Func(Of KeyValuePair(Of TKey, TValue), TKey), Func(Of KeyValuePair(Of TKey, TValue), TValue))

Overloaded. Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.(Defined by ImmutableSortedDictionary.)

System_CAPS_pubmethodToImmutableSortedDictionary(Of KeyValuePair(Of TKey, TValue), TKey, TValue)(Func(Of KeyValuePair(Of TKey, TValue), TKey), Func(Of KeyValuePair(Of TKey, TValue), TValue), IComparer(Of 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.)

System_CAPS_pubmethodToImmutableSortedDictionary(Of KeyValuePair(Of TKey, TValue), TKey, TValue)(Func(Of KeyValuePair(Of TKey, TValue), TKey), Func(Of KeyValuePair(Of TKey, TValue), TValue), IComparer(Of TKey), IEqualityComparer(Of 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.)

System_CAPS_pubmethodToImmutableSortedSet(Of KeyValuePair(Of TKey, TValue))()

Overloaded. Enumerates a sequence and produces an immutable sorted set of its contents.(Defined by ImmutableSortedSet.)

System_CAPS_pubmethodToImmutableSortedSet(Of KeyValuePair(Of TKey, TValue))(IComparer(Of KeyValuePair(Of TKey, TValue)))

Overloaded. Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.(Defined by ImmutableSortedSet.)

This type is thread safe.

Return to top
Show: