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(); }
static extern void test (ref test_struct ts);
static int Main () { test_struct ts = new test_struct (); test (ref ts); return (ts.b.b == 42) ? 0 : 1; }
private void struct_input(test_struct s) { s.test = "hello world"; }
public void take_struct_in_struct_parameter() { var s = new test_struct(); struct_input(s); }
public void concat_string_with_struct() { var t = new test_struct(); var a = "hello " + t; }