public static void Call <TThis>(IntPtr info, Action <TThis, NSJSFunctionCallbackInfo, string> doo) { Throwable.ArgumentNullException(info, doo); Call <TThis>(info, (self, arguments, value) => doo(self, arguments, (value as NSJSString)?.Value)); }
public static void GetOrSetProperty <TThis>(IntPtr info, Action <TThis, NSJSFunctionCallbackInfo> get, Action <TThis, NSJSFunctionCallbackInfo, NSJSObject> set) { Throwable.ArgumentNullException(info, get, set); GetOrSetProperty <TThis>(info, get, (TThis self, NSJSFunctionCallbackInfo arguments, NSJSValue value) => set(self, arguments, value as NSJSObject)); }
public static void Call <TThis>(IntPtr info, Action <TThis, NSJSFunctionCallbackInfo, DateTime> doo) { Throwable.ArgumentNullException(info, doo); Call <TThis>(info, (self, arguments, value) => doo(self, arguments, ValueAuxiliary.ToDateTime(value))); }
public static void Call <TThis>(IntPtr info, Action <TThis, NSJSFunctionCallbackInfo, double[]> doo) { Throwable.ArgumentNullException(info, doo); Call <TThis>(info, (self, arguments, value) => doo(self, arguments, (value as NSJSFloat64Array)?.Buffer)); }
public static void GetOrSetProperty <TThis>(IntPtr info, Func <TThis, string> get, Action <TThis, string> set) { Throwable.ArgumentNullException(get, set); GetOrSetProperty <TThis>(info, (self, arguments) => arguments.SetReturnValue(get(self)), (self, value) => set(self, (value as NSJSString)?.Value)); }
public static void GetOrSetProperty <TThis>(IntPtr info, Func <TThis, double[]> get, Action <TThis, double[]> set) { Throwable.ArgumentNullException(info, get, set); GetOrSetProperty <TThis>(info, (self, arguments) => arguments.SetReturnValue(get(self)), (self, value) => set(self, (value as NSJSFloat64Array)?.Buffer)); }
public static void GetOrSetProperty <TThis>(IntPtr info, Func <TThis, int> get, Action <TThis, int> set) { Throwable.ArgumentNullException(info, get, set); GetOrSetProperty <TThis>(info, (self, arguments) => arguments.SetReturnValue(get(self)), (self, value) => set(self, ValueAuxiliary.ToInt32(value))); }