Exemplo n.º 1
0
    public static int Main()
    {
        var m = new MyUInt32(2);

        m = test1(m);
        if (m.x != 3)
        {
            return(1);
        }

        m = new MyUInt32(2);
        m = test2(m);
        if (m.x != 3)
        {
            return(2);
        }

        m = new MyUInt32(3);
        m = test3(m);
        if (m.x != 4)
        {
            return(3);
        }

        return(0);
    }
Exemplo n.º 2
0
	public static int Main ()
	{
		var m = new MyUInt32 (2);
		m = test1 (m);
		if (m.x != 3)
			return 1;

		m = new MyUInt32 (2);
		m = test2 (m);
		if (m.x != 3)
			return 2;

		m = new MyUInt32 (3);
		m = test3 (m);
		if (m.x != 4)
			return 3;

		return 0;
	}
Exemplo n.º 3
0
 static MyUInt32 test3(MyUInt32 x)
 {
     ++x;
     return(x);
 }
Exemplo n.º 4
0
 static MyUInt32 test2(MyUInt32 x)
 {
     x++;
     return(x);
 }
Exemplo n.º 5
0
 static MyUInt32 test1(MyUInt32 x)
 {
     x = x + 1;
     return(x);
 }
 public Task <uint> SubUIntTask(MyUInt32 data)
 {
     return(Task.FromResult(data.Data));
 }
Exemplo n.º 7
0
	static MyUInt32 test3 (MyUInt32 x)
	{
		++x;
		return x;
	}
Exemplo n.º 8
0
	static MyUInt32 test2 (MyUInt32 x)
	{
		x++;
		return x;
	}
Exemplo n.º 9
0
	static MyUInt32 test1 (MyUInt32 x)
	{
		x = x + 1;
		return x;
	}