Share via


NSOrderedSet.ToArray<T> Method

Definition

Returns the contents of the ordered set as a strongly typed array.

public T[] ToArray<T>() where T : class, ObjCRuntime.INativeObject;
member this.ToArray : unit -> 'T[] (requires 'T : null and 'T :> ObjCRuntime.INativeObject)

Type Parameters

T

The type of values in the array, must be a class that implements INativeObject.

Returns

T[]

An array of type T with the contents of the ordered set.

Applies to