Skip to content

.NET core hosting: how to instantiate objects, call members functions ? #18174

@gabrieldevillers

Description

@gabrieldevillers

The current documentation does not tell whether instantiating objects and calling member functions is impossible or just out of scope for this tutorial. I searched a lot online and found no more information on that.

This is something which is possible to do with Mono (using mono_object_new and mono_runtime_invoke according to https://www.mono-project.com/docs/advanced/embedding/).

Is this something that is not currently possible with .NET core ? Do you think this will be possible in the future, and when approximately would you expect it to be implemented ?

This feature is appealing because embedding C# is the best option I found to call C# from C++ in a cross-platform way:

Thanks in advance.

[Edited by gewarren to add document details]


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    won't fixIssues that were closed as part of automated backlog grooming

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions