public static ReferenceCountedObject FromPtr(long ptr) { GCHandle handle = GCHandle.FromIntPtr((IntPtr)ptr); ReferenceCountedObject managedObject = handle.Target as ReferenceCountedObject; return(managedObject); }
public new static ReferenceCountedObject FromPtr(long ptr) { return(ReferenceCountedObject.FromPtr(ptr) as ReferenceCountedObject); }
public new static MessageReceivedEventArgs FromPtr(long ptr) { return(ReferenceCountedObject.FromPtr(ptr) as MessageReceivedEventArgs); }