【转】.NET (C#) 中打印变量的内存地址
原文地址: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}");