v_get_simple() публичный Метод

public v_get_simple ( int v ) : Simple
v int
Результат Simple
Пример #1
0
    public static int test_2_return_struct_virtual()
    {
        Tests  t = new Tests();
        Simple v = t.v_get_simple(2);

        if (v.a != 2)
        {
            return(0);
        }
        if (v.b != 3)
        {
            return(0);
        }
        if (v.c != 4)
        {
            return(0);
        }
        if (v.d != 5)
        {
            return(0);
        }
        return(2);
    }
Пример #2
0
	public static int test_2_return_struct_virtual () {
		Tests t = new Tests ();
		Simple v = t.v_get_simple (2);

		if (v.a != 2)
			return 0;
		if (v.b != 3)
			return 0;
		if (v.c != 4)
			return 0;
		if (v.d != 5)
			return 0;
		return 2;
	}