HashSet<T>.AlternateLookup<TAlternate> Struct
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>::AlternateLookup
public readonly struct HashSet<T>.AlternateLookup<TAlternate>
type HashSet<'T>.AlternateLookup<'Alternate> = struct
Public Structure HashSet(Of T).AlternateLookup(Of TAlternate)
- T
The type of elements in the hash set.
- TAlternate
The alternate type of instance for performing lookups.
- Inheritance
Set |
Gets the HashSet<T> against which this instance performs operations. |
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. |
Try |
Searches the set for a given value and returns the equal value it finds, if any. |
Product | Versions |
---|---|
.NET | 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: