unsafe
{
  byte* p = (byte*)(void*)ScanL;
  for(...)
 {
    ...
 }
}这是一段c++的
怎么改写为 c# 的

解决方案 »

  1.   

    unsafe
    {
      byte* p = (byte*)(void*)ScanL;
    }
    咋看都像C#阿,谁说这是C++
      

  2.   

    是C#?
    那为啥会报错呢?unsafe
      

  3.   

    找到了
    To set this compiler option in the Visual Studio development environment1.Open the project's Properties page. For details, see How to: Set Project Properties (C#, J#).2.Click the Build property page.3.Select the Allow Unsafe Code check box.