Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImmutableDictionary Class

 

Provides a set of initialization methods for instances of the ImmutableDictionary<TKey, TValue> class.

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::ImmutableDictionary

[ExtensionAttribute]
public ref class ImmutableDictionary abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticContains<TKey, TValue>(IImmutableDictionary<TKey, TValue>^, TKey, TValue)

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

System_CAPS_pubmethodSystem_CAPS_staticCreate<TKey, TValue>()

Creates an empty immutable dictionary.

System_CAPS_pubmethodSystem_CAPS_staticCreate<TKey, TValue>(IEqualityComparer<TKey>^)

Creates an empty immutable dictionary that uses the specified key comparer.

System_CAPS_pubmethodSystem_CAPS_staticCreate<TKey, TValue>(IEqualityComparer<TKey>^, IEqualityComparer<TValue>^)

Creates an empty immutable dictionary that uses the specified key and value comparers.

System_CAPS_pubmethodSystem_CAPS_staticCreateBuilder<TKey, TValue>()

Creates a new immutable dictionary builder.

System_CAPS_pubmethodSystem_CAPS_staticCreateBuilder<TKey, TValue>(IEqualityComparer<TKey>^)

Creates a new immutable dictionary builder.

System_CAPS_pubmethodSystem_CAPS_staticCreateBuilder<TKey, TValue>(IEqualityComparer<TKey>^, IEqualityComparer<TValue>^)

Creates a new immutable dictionary builder.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>^)

Creates a new immutable dictionary that contains the specified items.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<TKey, TValue>(IEqualityComparer<TKey>^, IEnumerable<KeyValuePair<TKey, TValue>>^)

Creates a new immutable dictionary that contains the specified items and uses the specified key comparer.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<TKey, TValue>(IEqualityComparer<TKey>^, IEqualityComparer<TValue>^, IEnumerable<KeyValuePair<TKey, TValue>>^)

Creates a new immutable dictionary that contains the specified items and uses the specified key comparer.

System_CAPS_pubmethodSystem_CAPS_staticGetValueOrDefault<TKey, TValue>(IImmutableDictionary<TKey, TValue>^, TKey)

Gets the value for a given key if a matching key exists in the dictionary.

System_CAPS_pubmethodSystem_CAPS_staticGetValueOrDefault<TKey, TValue>(IImmutableDictionary<TKey, TValue>^, TKey, TValue)

Gets the value for a given key if a matching key exists in the dictionary.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TSource, TKey>(IEnumerable<TSource>^, Func<TSource, TKey>^)

Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TSource, TKey>(IEnumerable<TSource>^, Func<TSource, TKey>^, IEqualityComparer<TKey>^)

Constructs an immutable dictionary based on some transformation of a sequence.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>^)

Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>^, IEqualityComparer<TKey>^)

Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents by using the specified key comparer.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>^, IEqualityComparer<TKey>^, IEqualityComparer<TValue>^)

Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents by using the specified key and value comparers.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TSource, TKey, TValue>(IEnumerable<TSource>^, Func<TSource, TKey>^, Func<TSource, TValue>^)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TSource, TKey, TValue>(IEnumerable<TSource>^, Func<TSource, TKey>^, Func<TSource, TValue>^, IEqualityComparer<TKey>^)

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

System_CAPS_pubmethodSystem_CAPS_staticToImmutableDictionary<TSource, TKey, TValue>(IEnumerable<TSource>^, Func<TSource, TKey>^, Func<TSource, TValue>^, IEqualityComparer<TKey>^, IEqualityComparer<TValue>^)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers.

This type is thread safe.

Return to top
Show:
© 2017 Microsoft