NSDictionary.FromObjectsAndKeys Method

Definition

Overloads

Name Description
FromObjectsAndKeys(NSObject[], NSObject[])

Creates a dictionary from a set of values and keys.

FromObjectsAndKeys(Object[], Object[])

Creates a dictionary from a set of values and keys.

FromObjectsAndKeys(NSObject[], NSObject[], IntPtr)

Creates a dictionary from a set of values and keys.

FromObjectsAndKeys(Object[], Object[], IntPtr)

Creates a dictionary from a set of values and keys.

FromObjectsAndKeys(NSObject[], NSObject[])

Creates a dictionary from a set of values and keys.

public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject[] objects, Foundation.NSObject[] keys);
public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject?[] objects, Foundation.NSObject[] keys);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] -> Foundation.NSDictionary

Parameters

objects
NSObject[]

Array of values for the dictionary. Null elements are stored as Null.

keys
NSObject[]

Array of keys for the dictionary.

Returns

A new NSDictionary containing the specified key-value pairs.

Applies to

FromObjectsAndKeys(Object[], Object[])

Creates a dictionary from a set of values and keys.

public static Foundation.NSDictionary FromObjectsAndKeys(object[] objects, object[] keys);
static member FromObjectsAndKeys : obj[] * obj[] -> Foundation.NSDictionary

Parameters

objects
Object[]

Array of values for the dictionary.

keys
Object[]

Array of keys for the dictionary.

Returns

A new NSDictionary containing the specified key-value pairs.

Remarks

The keys and values will first be boxed into NSObjects using FromObject(Object).

Applies to

FromObjectsAndKeys(NSObject[], NSObject[], IntPtr)

Creates a dictionary from a set of values and keys.

public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject[] objects, Foundation.NSObject[] keys, IntPtr count);
public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject?[] objects, Foundation.NSObject[] keys, IntPtr count);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] * nativeint -> Foundation.NSDictionary

Parameters

objects
NSObject[]

Array of values for the dictionary. Null elements are stored as Null.

keys
NSObject[]

Array of keys for the dictionary.

count
IntPtr

nativeint

Number of items to use in the creation; the number must be less than or equal to the number of elements in both arrays.

Returns

A new NSDictionary containing the specified key-value pairs.

Applies to

FromObjectsAndKeys(Object[], Object[], IntPtr)

Creates a dictionary from a set of values and keys.

public static Foundation.NSDictionary FromObjectsAndKeys(object[] objects, object[] keys, IntPtr count);
static member FromObjectsAndKeys : obj[] * obj[] * nativeint -> Foundation.NSDictionary

Parameters

objects
Object[]

Array of values for the dictionary.

keys
Object[]

Array of keys for the dictionary.

count
IntPtr

nativeint

Number of items to use in the creation; the number must be less than or equal to the number of elements in both arrays.

Returns

A new NSDictionary containing the specified key-value pairs.

Remarks

The keys and values will first be boxed into NSObjects using FromObject(Object).

Applies to