Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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)));
 }