Identifier Expected errors when binding a framework

I used objective sharpie to generate my ApiDefinition file and cleaned up the issues in there. When I import my framework into the project however, I get multiple errors in a couple of my *.g.cs files that say "Identifier Expect"

Here is an example of one of the lines that is causing the issue:

public static void RichEditorHeightDidChange (this IRichEditorDelegate This, global::.RichEditorView editor, NSObject height)

Is there something that I might have missed?

Tagged:

Answers

  • ChrisBoehm10ChrisBoehm10 USMember ✭✭

    Have you discovered a fix for this yet? I'm experiencing the same issue after using Sharpie.

  • candersoncanderson USMember ✭✭

    @ChrisBoehm10 said:
    Have you discovered a fix for this yet? I'm experiencing the same issue after using Sharpie.

    I don't think I ever did find a solution to this one. I think I might have just ended up doing a rewrite of the component in C# from scratch and avoided the whole binding issue.

  • ChrisBoehm10ChrisBoehm10 USMember ✭✭

    @canderson For me, the fix was that I didn't have a namespace in my ApiDefinition.cs class. I must have accidentally blown it away when I copy & pasted the sharpie output into the file.

    Just add...

    namespace YourBindingProjectName
    {
    ...
    }

    ..to ApiDefinition.cs.

Sign In or Register to comment.