Compartir a través de


NSMutableDictionary<TKey,TValue> Constructores

Definición

Sobrecargas

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

Constructor que inicializa el objeto a partir de los datos almacenados en el objeto unarchiver.

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 ();

Se aplica a

NSMutableDictionary<TKey,TValue>(NSCoder)

Constructor que inicializa el objeto a partir de los datos almacenados en el objeto unarchiver.

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)>

Parámetros

coder
NSCoder

Objeto unarchiver.

Comentarios

Este constructor se proporciona para permitir que la clase se inicialice desde un archivador (por ejemplo, durante la deserialización de NIB). Esto forma parte del NSCoding protocolo.

Si los desarrolladores quieren crear una subclase de este objeto y seguir admitiendo la deserialización desde un archivo, deben implementar un constructor con una firma idéntica: tomar un único parámetro de tipo NSCoder y decorarlo con la declaración de atributo [Export("initWithCoder:"].

El estado de este objeto también se puede serializar mediante el método complementario EncodeTo.

Se aplica a

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)>

Parámetros

Se aplica a

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)>

Parámetros

Se aplica a

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)>

Parámetros

key
TKey
value
TValue

Se aplica a

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)>

Parámetros

keys
TKey[]
values
TValue[]

Se aplica a