protected override void Release() { if (Handle != IntPtr.Zero) { Messaging.void_objc_msgSend(Handle, Selector.GetHandle("release")); } }
protected virtual void Dispose(bool disposing) { if (Handle != IntPtr.Zero) { Messaging.void_objc_msgSend(Handle, Selector.GetHandle("release")); Handle = IntPtr.Zero; } }
public BaseWrapper(IntPtr handle, bool owns) { Handle = handle; if (!owns) { Messaging.void_objc_msgSend(Handle, Selector.GetHandle("retain")); } }