FrozenDictionary<TKey,TValue>.TryGetAlternateLookup<TAlternateKey> 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 FrozenDictionary<TKey,TValue>
using a TAlternateKey
as a key instead of a TKey
.
public:
generic <typename TAlternateKey>
bool TryGetAlternateLookup([Runtime::InteropServices::Out] System::Collections::Frozen::FrozenDictionary<TKey, TValue>::AlternateLookup<TAlternateKey> % lookup);
public bool TryGetAlternateLookup<TAlternateKey>(out System.Collections.Frozen.FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey> lookup);
member this.TryGetAlternateLookup : AlternateLookup -> bool
Public Function TryGetAlternateLookup(Of TAlternateKey) (ByRef lookup As FrozenDictionary(Of TKey, TValue).AlternateLookup(Of TAlternateKey)) As Boolean
- TAlternateKey
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 TAlternateKey
and TKey
. If it doesn't, the method will return false
.
Product | Versions |
---|---|
.NET | 9 (package-provided), 9, 10 (package-provided), 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: