Method TryGetAlternateLookup
TryGetAlternateLookup<TAlternateKey>(out AlternateLookup<TAlternateKey>)
Gets an alternate lookup that can be used to perform operations on this dictionary using TAlternateKey
instead of TKey
.
Declaration
public bool TryGetAlternateLookup<TAlternateKey>(out WeakValueDictionary<TKey, TValue>.AlternateLookup<TAlternateKey> lookup) where TAlternateKey : notnull, allows ref struct
Parameters
Type | Name | Description |
---|---|---|
WeakValueDictionary<TKey, TValue>.AlternateLookup<TAlternateKey> | lookup |
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
TAlternateKey |