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

Definition

Ruft eine Instanz des unveränderlichen Hashsets ab, die den angegebenen Gleichheitsvergleich für ihre Suchmethoden verwendet.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);
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)

Parameter

equalityComparer
IEqualityComparer<T>

Der zu verwendende Gleichheitsvergleich.The equality comparer to use.

Gibt zurück

Eine Instanz dieses unveränderlichen Hashsets, die den angegebenen Vergleich verwendet.An instance of this immutable hash set that uses the given comparer.

Gilt für: