NSSet<TKey>.ToHashSet<T>(Func<TKey,T>) Method
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.
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
A new HashSet<T> with this set of items.