FrozenSet<T>.TryGetAlternateLookup<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 may be used to perform operations on a FrozenSet<T>
using a TAlternate
instead of a T
.
public:
generic <typename TAlternate>
bool TryGetAlternateLookup([Runtime::InteropServices::Out] System::Collections::Frozen::FrozenSet<T>::AlternateLookup<TAlternate> % lookup);
public bool TryGetAlternateLookup<TAlternate> (out System.Collections.Frozen.FrozenSet<T>.AlternateLookup<TAlternate> lookup);
member this.TryGetAlternateLookup : AlternateLookup -> bool
Public Function TryGetAlternateLookup(Of TAlternate) (ByRef lookup As FrozenSet(Of T).AlternateLookup(Of TAlternate)) As Boolean
- TAlternate
The alternate type of a key for performing lookups.
The created lookup instance when the method returns true
, or a default instance that should not be used if the method returns false
.
true
if a lookup could be created; otherwise, false
.
This instance must be using a comparer that implements IAlternateEqualityComparer<TAlternate,T> with TAlternate
and T
. If it doesn't, the method will return false
.
Product | Versions |
---|---|
.NET | 9 (package-provided), 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: