Share via


DictionaryContainer.GetArray Method

Definition

Overloads

GetArray<T>(NSString)

Returns the nullable array of T associated with the specified key.

GetArray<T>(NSString, Func<NativeHandle,T>)

Returns the nullable array of T associated with the specified key.

GetArray<T>(NSString)

Returns the nullable array of T associated with the specified key.

protected T[]? GetArray<T>(Foundation.NSString key) where T : Foundation.NSObject;
member this.GetArray : Foundation.NSString -> 'T[] (requires 'T :> Foundation.NSObject)

Type Parameters

T

Parameters

key
NSString

The identifier of the value to get.

Returns

T[]

The stored array of T value if present in the dictionary, null otherwise.

Applies to

GetArray<T>(NSString, Func<NativeHandle,T>)

Returns the nullable array of T associated with the specified key.

protected T[]? GetArray<T>(Foundation.NSString key, Func<ObjCRuntime.NativeHandle,T> creator);
member this.GetArray : Foundation.NSString * Func<ObjCRuntime.NativeHandle, 'T> -> 'T[]

Type Parameters

T

Parameters

key
NSString

The identifier of the value to get.

creator
Func<NativeHandle,T>

A callback to convert between the native object stored in the dictionary to the desired return type.

Returns

T[]

The stored array of T value if present in the dictionary, null otherwise.

Applies to