NSArray<TKey> Constructors
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
NSArray<TKey>() | |
NSArray<TKey>(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
NSArray<TKey>()
public NSArray ();
Applies to
NSArray<TKey>(NSCoder)
A constructor that initializes the object from the data stored in the unarchiver object.
public NSArray (Foundation.NSCoder coder);
new Foundation.NSArray<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSArray<'Key (requires 'Key : null and 'Key :> 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.