Mac Guides | Samples

MonoMac.Foundation.NSKeyedUnarchiver Constructor

Constructor to call on derived classes when the derived class has an [Export] constructor.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public NSKeyedUnarchiver (NSObjectFlag t)

Parameters

t
Unused sentinel value, pass NSObjectFlag.Empty.

Remarks

This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:

C# Example

public class MyClass : BaseClass {
    [Export ("initWithFoo:")]
    public MyClass (string foo) : base (NSObjectFlag.Empty)
    {
        ...
    }

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0