Beispiel #1
0
    public static int UseComplex()
    {
        var complex = new Simple.Complex(10, "xx");
        var res     = complex.DoStuff();

        return(res);
    }
Beispiel #2
0
    public static int UseComplex(int a, int b)
    {
        var complex = new Simple.Complex(10, "xx");
        int c       = a + b;
        int d       = c + b;
        int e       = d + a;
        int f       = 0;

        e += complex.DoStuff();
        return(e);
    }
Beispiel #3
0
    public static int IntAdd(int a, int b)
    {
        var cp = new Simple.Complex(10, "hello");
        int c  = a + b;
        int d  = c + b;
        int e  = d + a;

        e += cp.DoStuff();

        return(e);
    }
Beispiel #4
0
    [System.Runtime.InteropServices.JavaScript.JSExport] public static int UseComplex(int a, int b)
    {
        var complex = new Simple.Complex(10, "xx");
        int c       = a + b;
        int d       = c + b;
        int e       = d + a;
        int f       = 0;

        e += complex.DoStuff();
        return(e);
    }