Edit

Share via


NSMutableArray<TValue> Constructors

Definition

Overloads

NSMutableArray<TValue>()
NSMutableArray<TValue>(NSCoder)

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

NSMutableArray<TValue>(nuint)
NSMutableArray<TValue>(TValue[])

NSMutableArray<TValue>()

public NSMutableArray ();

Applies to

NSMutableArray<TValue>(NSCoder)

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

public NSMutableArray (Foundation.NSCoder coder);
new Foundation.NSMutableArray<'Value (requires 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSMutableArray<'Value (requires '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

NSMutableArray<TValue>(nuint)

public NSMutableArray (nuint capacity);
new Foundation.NSMutableArray<'Value (requires 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : nuint -> Foundation.NSMutableArray<'Value (requires 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

capacity
System.System.UIntPtr System.unativeint

Applies to

NSMutableArray<TValue>(TValue[])

public NSMutableArray (params TValue[] values);
new Foundation.NSMutableArray<'Value (requires 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : 'Value[] -> Foundation.NSMutableArray<'Value (requires 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameters

values
TValue[]

Applies to