示例#1
0
        internal static object Convert(IntPtr ptr)
        {
            ObjectWrapper wrapper = new ObjectWrapper ();

            wrapper.handle = ptr;

            return wrapper.obj;
        }
示例#2
0
        internal static IntPtr Convert(object obj)
        {
            if (obj == null)
                return IntPtr.Zero;

            ObjectWrapper wrapper = new ObjectWrapper ();

            wrapper.obj = obj;

            return wrapper.handle;
        }