Is there pointer in C# like C++? Is it safe?

后端 未结 5 1539
抹茶落季
抹茶落季 2020-12-08 18:20

I\'m writing an application that work with a tree data structure. I\'ve written it with C++, now i want to write it by C#. I use pointers for implementing the tree data stru

5条回答
  •  误落风尘
    2020-12-08 19:03

    Yes, there is a pointer: IntPtr

    Wikipedia: "which is a safe managed equivalent to int*, and does not require unsafe code"

提交回复
热议问题