MonobjcMonobjc Documented Class Library
DictionaryWithObjectsForKeys Method (objects, keys)
NamespacesMonobjc.FoundationNSDictionaryDictionaryWithObjectsForKeys(NSArray, NSArray)

Creates and returns a dictionary containing entries constructed from the contents of an array of keys and an array of values.

Original signature is '+ (id)dictionaryWithObjects:(NSArray *)objects forKeys:(NSArray *)keys'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDictionary DictionaryWithObjectsForKeys(
	NSArray objects,
	NSArray keys
)
Public Shared Function DictionaryWithObjectsForKeys ( _
	objects As NSArray, _
	keys As NSArray _
) As NSDictionary
public:
static NSDictionary^ DictionaryWithObjectsForKeys(
	NSArray^ objects, 
	NSArray^ keys
)
Parameters
objects (NSArray)
An array containing the values for the new dictionary.
keys (NSArray)
An array containing the keys for the new dictionary. Each key is copied (using copyWithZone:; keys must conform to the NSCopying protocol), and the copy is added to the dictionary.
Return Value
A new dictionary containing entries constructed from the contents of objects and keys.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)