NSMutableDictionary<TKey,TValue> Constructors

Definition

Overloads

NSMutableDictionary<TKey,TValue>()
NSMutableDictionary<TKey,TValue>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

NSMutableDictionary<TKey,TValue>(NSDictionary<TKey,TValue>)
NSMutableDictionary<TKey,TValue>(NSMutableDictionary<TKey,TValue>)
NSMutableDictionary<TKey,TValue>(TKey, TValue)
NSMutableDictionary<TKey,TValue>(TKey[], TValue[])

NSMutableDictionary<TKey,TValue>()

public NSMutableDictionary ();

Applies to

NSMutableDictionary<TKey,TValue>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

public NSMutableDictionary (Foundation.NSCoder coder);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

coder
NSCoder

The unarchiver object.

Remarks

This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the NSCoding protocol.

If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type NSCoder and decorate it with the [Export("initWithCoder:"] attribute declaration.

The state of this object can also be serialized by using the companion method, EncodeTo.

Applies to

NSMutableDictionary<TKey,TValue>(NSDictionary<TKey,TValue>)

public NSMutableDictionary (Foundation.NSDictionary<TKey,TValue> other);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : Foundation.NSDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

Applies to

NSMutableDictionary<TKey,TValue>(NSMutableDictionary<TKey,TValue>)

public NSMutableDictionary (Foundation.NSMutableDictionary<TKey,TValue> other);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

Applies to

NSMutableDictionary<TKey,TValue>(TKey, TValue)

public NSMutableDictionary (TKey key, TValue value);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : 'Key * 'Value -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

key
TKey
value
TValue

Applies to

NSMutableDictionary<TKey,TValue>(TKey[], TValue[])

public NSMutableDictionary (TKey[] keys, TValue[] values);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : 'Key[] * 'Value[] -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

keys
TKey[]
values
TValue[]

Applies to