public static void Test1(bool call_struct_function) { if (call_struct_function) { Struct12288 s = new Struct12288(); s.i2 = 5; TestWrite(1, 2, 3, 4, s); // 4 int reg args, then struct stack arg } else { TestWrite2(); } }
public static void TestWrite(int i1, int i2, int i3, int i4, Struct12288 s) { Console.WriteLine(i1 + i2 + i3 + i4 + s.i2); }