Пример #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);
 }