CFArray.Create Method

Definition

Overloads

Name Description
Create(INativeObject[])
Create(IReadOnlyList<String>)

Create a CFArray from a list of strings.

Create(String[])

Create a CFArray from an array of strings.

Create(INativeObject[])

public static ObjCRuntime.NativeHandle Create(params ObjCRuntime.INativeObject[] values);
static member Create : ObjCRuntime.INativeObject[] -> ObjCRuntime.NativeHandle

Parameters

values
INativeObject[]

Returns

Applies to

Create(IReadOnlyList<String>)

Create a CFArray from a list of strings.

public static ObjCRuntime.NativeHandle Create(System.Collections.Generic.IReadOnlyList<string?> values);
static member Create : System.Collections.Generic.IReadOnlyList<string> -> ObjCRuntime.NativeHandle

Parameters

values
IReadOnlyList<String>

The list of strings.

Returns

An unmanaged handle to the new CFArray.

Remarks

If any string in values is null, a NSNull entry will be created for that element.

The caller must release the returned handle.

Applies to

Create(String[])

Create a CFArray from an array of strings.

public static ObjCRuntime.NativeHandle Create(params string[] values);
public static ObjCRuntime.NativeHandle Create(params string?[] values);
static member Create : string[] -> ObjCRuntime.NativeHandle

Parameters

values
String[]

The array of strings.

Returns

An unmanaged handle to the new CFArray.

Remarks

If any string in values is null, a NSNull entry will be created for that element.

The caller must release the returned handle.

Applies to