Exemplo n.º 1
0
    public static void Main(string[] args)
    {
        test_class  a = new test_class();
        test_struct b = new test_struct();

        a.i = 1;
        a.something();

        b.i = 1;
        b.something();
    }
Exemplo n.º 2
0
Arquivo: test.cs Projeto: mono/gert
	static extern void test (ref test_struct ts);
Exemplo n.º 3
0
Arquivo: test.cs Projeto: mono/gert
	static int Main ()
	{
		test_struct ts = new test_struct ();
		test (ref ts);
		return (ts.b.b == 42) ? 0 : 1;
	}
Exemplo n.º 4
0
 private void struct_input(test_struct s)
 {
     s.test = "hello world";
 }
Exemplo n.º 5
0
        public void take_struct_in_struct_parameter()
        {
            var s = new test_struct();

            struct_input(s);
        }
Exemplo n.º 6
0
 public void concat_string_with_struct()
 {
     var t = new test_struct();
     var a = "hello " + t;
 }