Skip to content
Discussion options

You must be logged in to vote

@huoyaoyuan This is a great question. It is something I am actively working with multiple stakeholders to define. Let's go through each point in your comment.

heard that C++/CLI can provide better interop performance than C#, thus used in places like WPF.

That is partially true. There was also a safety perspective when writing C++ and relying on the .NET runtime when appropriate. Making consuming C++ libraries, while avoiding COM, from .NET was another pillar. Herb Sutter's original white-paper can be found here.

Now in .NET Core we have many new unsafe API and manual marshalling to improve interop performance of C#. Is there still any key difference between IL and native (IJW) code?

F…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@huoyaoyuan
Comment options

huoyaoyuan Apr 4, 2023
Collaborator Author

Answer selected by huoyaoyuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment