示例#1
0
        public static ReferenceCountedObject FromPtr(long ptr)
        {
            GCHandle handle = GCHandle.FromIntPtr((IntPtr)ptr);

            ReferenceCountedObject managedObject = handle.Target as ReferenceCountedObject;

            return(managedObject);
        }
示例#2
0
 public new static ReferenceCountedObject FromPtr(long ptr)
 {
     return(ReferenceCountedObject.FromPtr(ptr) as ReferenceCountedObject);
 }
示例#3
0
 public new static MessageReceivedEventArgs FromPtr(long ptr)
 {
     return(ReferenceCountedObject.FromPtr(ptr) as MessageReceivedEventArgs);
 }