原文地址:https://my.oschina.net/sesametech/blog/1563905
点击查看代码
GCHandle hander = GCHandle.Alloc(obj);
var pin = GCHandle.ToIntPtr(hander);
Debug.Print($"Device :{pin}");
原文地址:https://my.oschina.net/sesametech/blog/1563905
GCHandle hander = GCHandle.Alloc(obj);
var pin = GCHandle.ToIntPtr(hander);
Debug.Print($"Device :{pin}");