NSArray.FromNullableStrings(String[]) Method

Definition

Creates an NSArray from a potentially null array of strings.

public static Foundation.NSArray? FromNullableStrings(params string?[]? items);
static member FromNullableStrings : string[] -> Foundation.NSArray

Parameters

items
String[]

Array of C# strings, or null.

Returns

A new NSArray containing the strings, or null if items is null.

Remarks

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

Applies to