Επεξεργασία

Κοινή χρήση μέσω


HashSet<T>.AlternateLookup<TAlternate> Struct

Definition

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)

Type Parameters

T

The type of elements in the hash set.

TAlternate

The alternate type of instance for performing lookups.

Inheritance
HashSet<T>.AlternateLookup<TAlternate>

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.

Applies to