摘要:
1、首先在项目属性—>生成->“允许不安全代码”勾选2、使用方式 第一种:函数前加unsafe 第二种:在代码的外面加unsafe{}; 如: unsafe static void TestPtrInCS() { { int* array = stackalloc int[10]; for (int i = 0; i < 10; i++) { array[i] = i; Cons... 阅读全文
posted @ 2011-10-13 16:53 work hard work smart 阅读(283) 评论(0) 推荐(0)
浙公网安备 33010602011771号