public static RectangleF ConvertRectToBacking(this NSView view, RectangleF aRect) { RectangleF result; if (view.GetPrivateFieldValue <bool>("IsDirectBinding")) { Messaging.RectangleF_objc_msgSend_stret_RectangleF(out result, view.Handle, NSViewExtensions.selConvertRectToBacking_, aRect); } else { Messaging.RectangleF_objc_msgSendSuper_stret_RectangleF(out result, view.SuperHandle, NSViewExtensions.selConvertRectToBacking_, aRect); } return(result); }