Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Myclass  testClass  = new Myclass();
            Mystruct testStruct = new Mystruct();

            testClass.change  = "popoxvac chi";
            testStruct.change = "popoxvac chi";

            ClassTaker(testClass);
            StructTaker(testStruct);

            Console.WriteLine(testClass.change);
            Console.WriteLine(testStruct.change);

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 static void StructTaker(Mystruct c)
 {
     c.change = "popoxvac";
 }