Rediger

Del via


ImmutableHashSet<T>.WithComparer(IEqualityComparer<T>) Method

Definition

Gets an instance of the immutable hash set that uses the specified equality comparer for its search methods.

public:
 System::Collections::Immutable::ImmutableHashSet<T> ^ WithComparer(System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public System.Collections.Immutable.ImmutableHashSet<T> WithComparer (System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public System.Collections.Immutable.ImmutableHashSet<T> WithComparer (System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.WithComparer : System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function WithComparer (equalityComparer As IEqualityComparer(Of T)) As ImmutableHashSet(Of T)

Parameters

equalityComparer
IEqualityComparer<T>

The equality comparer to use.

Returns

An instance of this immutable hash set that uses the given comparer.

Applies to