HashSet<T>.GetAlternateLookup<TAlternate> Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an instance of a type that can be used to perform operations on the current HashSet<T> using a TAlternate
instead of a T
.
public:
generic <typename TAlternate>
System::Collections::Generic::HashSet<T>::AlternateLookup<TAlternate> GetAlternateLookup();
public System.Collections.Generic.HashSet<T>.AlternateLookup<TAlternate> GetAlternateLookup<TAlternate>();
member this.GetAlternateLookup : unit -> System.Collections.Generic.HashSet<'T>.AlternateLookup<'Alternate>
Public Function GetAlternateLookup(Of TAlternate) () As HashSet(Of T).AlternateLookup(Of TAlternate)
- TAlternate
The alternate type of instance for performing lookups.
The created lookup instance.
The set's comparer is not compatible with TAlternate
.
The set must use a comparer that implements IAlternateEqualityComparer<TAlternate,T> with TAlternate
and T
. If it doesn't, an exception is thrown.
Termék | Verziók |
---|---|
.NET | 9, 10 |
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: