예제 #1
0
 public static void MainX()
 {
     var p = new MyStruct { X = 1, Array=new int[3]};
     ProcessStruct(p);
     Console.WriteLine(p.Array[0]);
 }
예제 #2
0
 static void ProcessStruct(MyStruct p)
 {
     p.Array[0] = 100;
 }
예제 #3
0
 static void ProcessStruct(MyStruct p)
 {
     p.Array[0] = 100;
 }