Skip to content

Cannot use boolean in function import #126

@furesoft

Description

@furesoft

Hi,

I am trying to use a function like:

[DllImport(Functions.DLL, EntryPoint = "moss_api_delete")]
private static extern void DeleteNotebook(ulong acessorPtr, ulong callbackPtr, bool unload);

but I get the error: Unsupported parameter type: unload (System.Boolean) on System.Void Moss.NET.Sdk.Storage.Document::DeleteNotebook(System.UInt64,System.UInt64,System.Boolean) method.

Can you add support for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions