NSDictionary.FromObjectsAndKeys Method

Definition

Overloads

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[], nint)

Creates a dictionary from a set of values and keys.

FromObjectsAndKeys(Object[], Object[], nint)

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);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] -> Foundation.NSDictionary

Parameters

objects
NSObject[]

Array of values for the dictionary.

keys
NSObject[]

Array of keys for the dictionary.

Returns

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

Remarks

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

Applies to

FromObjectsAndKeys(NSObject[], NSObject[], nint)

Creates a dictionary from a set of values and keys.

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

Parameters

objects
NSObject[]

Array of values for the dictionary.

keys
NSObject[]

Array of keys for the dictionary.

count
System.System.IntPtr System.nativeint

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

Returns

Applies to

FromObjectsAndKeys(Object[], Object[], nint)

Creates a dictionary from a set of values and keys.

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

Parameters

objects
Object[]

Array of values for the dictionary.

keys
Object[]

Array of keys for the dictionary.

count
System.System.IntPtr System.nativeint

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

Returns

Remarks

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

Applies to