コード例 #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();
    }
コード例 #2
0
ファイル: test.cs プロジェクト: mono/gert
	static extern void test (ref test_struct ts);
コード例 #3
0
ファイル: test.cs プロジェクト: mono/gert
	static int Main ()
	{
		test_struct ts = new test_struct ();
		test (ref ts);
		return (ts.b.b == 42) ? 0 : 1;
	}
コード例 #4
0
ファイル: Program.cs プロジェクト: TagsRocks/XzaarScript
 private void struct_input(test_struct s)
 {
     s.test = "hello world";
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: TagsRocks/XzaarScript
        public void take_struct_in_struct_parameter()
        {
            var s = new test_struct();

            struct_input(s);
        }
コード例 #6
0
ファイル: Program.cs プロジェクト: TagsRocks/XzaarScript
 public void concat_string_with_struct()
 {
     var t = new test_struct();
     var a = "hello " + t;
 }