HashSet<T>.GetAlternateLookup<TAlternate> メソッド

定義

HashSet<T>ではなく、TAlternateを使用して現在のTに対する操作を実行するために使用できる型のインスタンスを取得します。

public:
generic <typename TAlternate>
 System::Collections::Generic::HashSet<T>::AlternateLookup<TAlternate> GetAlternateLookup();
public System.Collections.Generic.HashSet<T>.AlternateLookup<TAlternate> GetAlternateLookup<TAlternate>() where TAlternate : allows ref struct;
member this.GetAlternateLookup : unit -> System.Collections.Generic.HashSet<'T>.AlternateLookup<'Alternate>
Public Function GetAlternateLookup(Of TAlternate) () As HashSet(Of T).AlternateLookup(Of TAlternate)

型パラメーター

TAlternate

参照を実行するためのインスタンスの代替型。

返品

作成された参照インスタンス。

例外

セットの比較子は、 TAlternateと互換性がありません。

注釈

セットでは、IAlternateEqualityComparer<TAlternate,T>TAlternateTを実装する比較子を使用する必要があります。 そうでない場合は、例外がスローされます。

適用対象