public bool Equals(CKObject rhs) { if (rhs == null) { return(false); } return(Handle.Handle == rhs.Handle.Handle); }
// See: // https://developer.apple.com/documentation/cloudkit/ckpartialerrorsbyitemidkey?language=objc // for how this works public NSError PartialErrorForItemId( CKObject itemId) { var val = NSError_partialErrorForItemId( Handle, itemId.Handle, out var exceptionPtr); if (exceptionPtr != IntPtr.Zero) { var nativeException = new NSException(exceptionPtr); throw new CloudKitException(nativeException, nativeException.Reason); } return(val == IntPtr.Zero ? null : new NSError(val)); }