Example #1
0
 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));
 }
Example #2
0
 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));
 }
Example #3
0
 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)));
 }
Example #4
0
 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));
 }
Example #5
0
 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));
 }
Example #6
0
 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));
 }
Example #7
0
 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)));
 }