C#中使用指针
程序段中使用指针
unsafe
{
int * i;
char * c;
}
函数中使用指针
public unsafe void Func()
{
char * c;
int ** i;
.......
}
C#中使用指针时,要将工程->Properties->Debug->Enable unmanaged code debuging选中才能进行编译。
unsafe
{
int * i;
char * c;
}
函数中使用指针
public unsafe void Func()
{
char * c;
int ** i;
.......
}
C#中使用指针时,要将工程->Properties->Debug->Enable unmanaged code debuging选中才能进行编译。