Пример #1
0
 public static void Main(string[] args)
 {
     TheStruct s = new TheStruct();
     TheClass c = new TheClass();
     s.x = 1;
     s.x = 1;
     structtaker(s);
     classtaker(c);
     Console.WriteLine("s.x = {0}", s.x);
     Console.WriteLine("c.x = {0}", c.x);
 }
Пример #2
0
 public static void classtaker(TheClass c)
 {
     c.x = 5;
 }