Share via


NSSet<TKey>.ToHashSet<T>(Func<TKey,T>) Method

Definition

Create an HashSet<T> from this set of items.

public System.Collections.Generic.HashSet<T> ToHashSet<T>(Func<TKey,T> convertCallback);
member this.ToHashSet : Func<'Key, 'T (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> -> System.Collections.Generic.HashSet<'T>

Type Parameters

T

Parameters

convertCallback
Func<TKey,T>

A callback function to convert from the type of each element into the type to add to the returned set.

Returns

HashSet<T>

A new HashSet<T> with this set of items.

Applies to