随笔分类 -  c#基础

c# 托管对象与InPtr互转
摘要:GCHandle thisHandle = GCHandle.Alloc(this);//this 是 MyClass类型 IntPtr thisptr = GCHandle.ToIntPtr(thisHandle); GCHandle thisHandle = GCHandle.From... 阅读全文
posted @ 2014-11-27 20:29 柚子代码 阅读(989) 评论(0) 推荐(0)