C++ 转 C#该怎么解决

C++ 转 C#C++代码pdata: pointer //传入的指针np :inttostr(pinteger(pData)^)//给integer的np赋值如何

C++ 转 C#
C++代码

pdata: pointer; //传入的指针
np :=  inttostr(pinteger(pData)^);   //给integer的np赋值
如何转C# 、、
[解决办法]
不管c++。

根据实际需求,重新写。
[解决办法]
在c#里回调函数就是委托