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

前端 未结 5 1136
执念已碎
执念已碎 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:04

    You might be thinking of unsafe blocks where you can write code that looks a lot like C++, since you can use pointers.

提交回复
热议问题