static void WithoutDJ()
        {
            var calc = Javonet.New("Calculator");
            var f1   = calc.Invoke <float>("Sub", new JPrimitive(1f / 3f), new JPrimitive(1f / 7f));
            var f2   = calc.Invoke <float>("Sub", 1f / 3f, 1f / 7f);
            var f3   = calc.Invoke <float>("TestFloat");

            var d1 = calc.Invoke <double>("DSub", new JPrimitive(1d / 3d), new JPrimitive(1d / 7d));
            var d2 = calc.Invoke <double>("DSub", 1d / 3d, 1d / 7d);
            var d3 = calc.Invoke <double>("TestDouble");

            Console.WriteLine($"Without DJ:\r\n{f1}\t{f2}\t{f3}\t{d1}\t{d2}\t{d3}");
        }
Beispiel #2
0
 public static DJObject New(string name, params object[] paras) => Javonet.New(name, paras.AsParameters()).ToDJ();
Beispiel #3
0
 public static DJObject New(string name) => Javonet.New(name).ToDJ();