NSDictionary<TKey,TValue>.FromObjectsAndKeys Method

Definition

Overloads

Name Description
FromObjectsAndKeys(TValue[], TKey[], IntPtr)

Creates a dictionary from parallel arrays of values and keys, using only the first count elements.

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

Creates a dictionary from parallel arrays of object values and keys, using only the first count elements.

FromObjectsAndKeys(TValue[], TKey[])

Creates a dictionary from parallel arrays of values and keys.

FromObjectsAndKeys(Object[], Object[])

Creates a dictionary from parallel arrays of object values and keys.

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

Creates a dictionary from parallel arrays of NSObject values and keys, using only the first count elements.

FromObjectsAndKeys(TValue[], TKey[], IntPtr)

Creates a dictionary from parallel arrays of values and keys, using only the first count elements.

public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(TValue[] objects, TKey[] keys, IntPtr count);
public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(TValue?[] objects, TKey[] keys, IntPtr count);
static member FromObjectsAndKeys : 'Value[] * 'Key[] * nativeint -> Foundation.NSDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

objects
TValue[]

An array of values. Null elements are stored as Null.

keys
TKey[]

An array of keys.

count
IntPtr

nativeint

The number of elements to use from each array.

Returns

A new dictionary containing the specified key-value pairs.

Applies to

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

Creates a dictionary from parallel arrays of object values and keys, using only the first count elements.

public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(object[] objects, object[] keys, IntPtr count);
static member FromObjectsAndKeys : obj[] * obj[] * nativeint -> Foundation.NSDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

objects
Object[]

An array of object values.

keys
Object[]

An array of object keys.

count
IntPtr

nativeint

The number of elements to use from each array.

Returns

A new dictionary containing the specified key-value pairs.

Applies to

FromObjectsAndKeys(TValue[], TKey[])

Creates a dictionary from parallel arrays of values and keys.

public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(TValue[] objects, TKey[] keys);
public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(TValue?[] objects, TKey[] keys);
static member FromObjectsAndKeys : 'Value[] * 'Key[] -> Foundation.NSDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

objects
TValue[]

An array of values. Null elements are stored as Null.

keys
TKey[]

An array of keys.

Returns

A new dictionary containing the specified key-value pairs.

Applies to

FromObjectsAndKeys(Object[], Object[])

Creates a dictionary from parallel arrays of object values and keys.

public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(object[] objects, object[] keys);
static member FromObjectsAndKeys : obj[] * obj[] -> Foundation.NSDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

objects
Object[]

An array of object values.

keys
Object[]

An array of object keys.

Returns

A new dictionary containing the specified key-value pairs.

Applies to

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

Creates a dictionary from parallel arrays of NSObject values and keys, using only the first count elements.

public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(Foundation.NSObject[] objects, Foundation.NSObject[] keys, IntPtr count);
public static Foundation.NSDictionary<TKey,TValue> FromObjectsAndKeys(Foundation.NSObject?[] objects, Foundation.NSObject[] keys, IntPtr count);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] * nativeint -> Foundation.NSDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

objects
NSObject[]

An array of NSObject values. Null elements are stored as Null.

keys
NSObject[]

An array of NSObject keys.

count
IntPtr

nativeint

The number of elements to use from each array.

Returns

A new dictionary containing the specified key-value pairs.

Applies to