HashSet<T>.AlternateLookup<TAlternate> Struct  
Definition
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.
Provides a type that can be used to perform operations on a HashSet<T> using a TAlternate instead of a T.
public: generic <typename TAlternate>
value class HashSet<T>::AlternateLookuppublic readonly struct HashSet<T>.AlternateLookup<TAlternate> where TAlternate : allows ref structtype HashSet<'T>.AlternateLookup<'Alternate> = structPublic Structure HashSet(Of T).AlternateLookup(Of TAlternate)Type Parameters
- T
The type of elements in the hash set.
- TAlternate
The alternate type of instance for performing lookups.
- Inheritance
Properties
| Set | Gets the HashSet<T> against which this instance performs operations. | 
Methods
| Add(TAlternate) | Adds the specified element to a set. | 
| Contains(TAlternate) | Determines whether a set contains the specified element. | 
| Remove(TAlternate) | Removes the specified element from a set. | 
| TryGetValue(TAlternate, T) | Searches the set for a given value and returns the equal value it finds, if any. |