GCHandle objHandle = GCHandle.Alloc(Globals.Instance.BlackBoard, GCHandleType.WeakTrackResurrection);
int address = GCHandle.ToIntPtr(objHandle).ToInt32();
Object obj = GCHandle.FromIntPtr(new IntPtr(address)).Target;
objHandle.Free();
还可以配合Marshal使用
Marshal