Example #1
0
 public bool ToBridgedType(Value value)
 {
     return(value.ConvertTo <bool>());
 }
Example #2
0
 private static bool MethodXor(Value a, Value b)
 {
     return(a.ConvertTo <bool>() ^ b.ConvertTo <bool>());
 }
Example #3
0
 private static bool MethodNot(Value a)
 {
     return(!a.ConvertTo <bool>());
 }
Example #4
0
 private static bool MethodEqualTo(Value a, Value b)
 {
     return(a.ConvertTo <bool>() == b.ConvertTo <bool>());
 }
Example #5
0
 private static bool MethodAnd(Value a, Value b)
 {
     return(a.ConvertTo <bool>() && b.ConvertTo <bool>());
 }
Example #6
0
 private static bool MethodGreaterThanOrEqualTo(Value a, Value b)
 {
     return(a.ConvertTo <float>() >= b.ConvertTo <float>());
 }
Example #7
0
 private static bool MethodLessThanOrEqualTo(Value a, Value b)
 {
     return(a.ConvertTo <float>() <= b.ConvertTo <float>());
 }
Example #8
0
 private static int MethodModulus(Value a, Value b)
 {
     return(a.ConvertTo <int>() % b.ConvertTo <int>());
 }
Example #9
0
 private static float MethodUnaryMinus(Value a)
 {
     return(-a.ConvertTo <float>());
 }
Example #10
0
 private static float MethodDivide(Value a, Value b)
 {
     return(a.ConvertTo <float>() / b.ConvertTo <float>());
 }
Example #11
0
 private static float MethodMultiply(Value a, Value b)
 {
     return(a.ConvertTo <float>() * b.ConvertTo <float>());
 }
Example #12
0
 private static float MethodSubtract(Value a, Value b)
 {
     return(a.ConvertTo <float>() - b.ConvertTo <float>());
 }
Example #13
0
 private static float MethodAdd(Value a, Value b)
 {
     return(a.ConvertTo <float>() + b.ConvertTo <float>());
 }
Example #14
0
 private static bool MethodEqualTo(Value a, Value b)
 {
     return(a.ConvertTo <string>().Equals(b.ConvertTo <string>()));
 }
Example #15
0
 private static string MethodConcatenate(Value arg1, Value arg2)
 {
     return(string.Concat(arg1.ConvertTo <string>(), arg2.ConvertTo <string>()));
 }
Example #16
0
 /// <inheritdoc/>
 public string ToBridgedType(Value value)
 {
     return(value.ConvertTo <string>());
 }