Export (0) Print
Expand All

ImmutableDictionary<TKey, TValue>.WithComparers Method (IEqualityComparer<TKey>, IEqualityComparer<TValue>)

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

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

public ImmutableDictionary<TKey, TValue> WithComparers(
	IEqualityComparer<TKey> keyComparer,
	IEqualityComparer<TValue> valueComparer
)

Parameters

keyComparer
Type: System.Collections.Generic.IEqualityComparer<TKey>

The key comparer to use.

valueComparer
Type: System.Collections.Generic.IEqualityComparer<TValue>

The value comparer to use.

Return Value

Type: System.Collections.Immutable.ImmutableDictionary<TKey, TValue>
An instance of the immutable dictionary that uses the given comparers.
Show:
© 2015 Microsoft