Can you write a block of c++ code inside C#?

前端 未结 5 1160
执念已碎
执念已碎 2021-01-20 06:47

I heard somewhere that you can drop down to C++ directly inside C# code. How is this done? Or did I hear wrong?

Note: I do not mean C++ / CLI.

5条回答
  •  情深已故
    2021-01-20 07:12

    Why would you need to do that? You can reference native C libraries, but I doubt very much that you can run native code from within managed code.

提交回复
热议问题