Method TryGetAlternateLookup
TryGetAlternateLookup<TAlternateKey>(out AlternateLookup<TAlternateKey>)
Attempts to get 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 | true if the dictionary's comparer implements IAlternateEqualityComparer<TAlternate, T> for
|
Type Parameters
| Name | Description |
|---|---|
| TAlternateKey |