NSDictionary<TKey,TValue>.FromObjectsAndKeys Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FromObjectsAndKeys(TValue[], TKey[], IntPtr) |
Creates a dictionary from parallel arrays of values and keys, using only the first |
| FromObjectsAndKeys(Object[], Object[], IntPtr) |
Creates a dictionary from parallel arrays of object values and keys, using only the first |
| 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 |
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
- count
-
IntPtr
nativeint
The number of elements to use from each array.
Returns
A new dictionary containing the specified key-value pairs.