My interface in the ApiDefinition.cs is like below.

[BaseType(typeof(NSCoding))]
interface LSMAInvitationDescription //: INSCoding
{
    [Export("encodeWithCoder:")]
    void EncodeTo(NSCoder encoder);
}

In my LSMAInvitationDescription.g.cs its like this.

    [Export ("encodeWithCoder:")]
    [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
    public virtual void EncodeTo (NSCoder encoder)
    {
        if (encoder == null)
            throw new ArgumentNullException ("encoder");
        if (IsDirectBinding) {
            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder.Handle);
        } else {
            global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder.Handle);
        }
    }

But when I build my binding project, I am getting the following error.

Error CS0534 'LSMAInvitationDescription' does not implement inherited abstract member 'NSCoding.EncodeTo(NSCoder)' SightCallBinding D:\Folder\SightCallBinding\SightCallBinding\obj\Debug\ios\SightCallBinding D:\Folder\SightCallBinding\SightCallBinding\obj\Debug\ios\SightCallBinding\LSMAInvitationDescription.g.cs 47 Active

Please help me. Thanks!

UPDATE

This is the library I'm trying to bind

0 Answers