Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            myClass  MyClass  = new myClass();
            myStruct MyStruct = new myStruct();

            Console.WriteLine("-------");
            MyClass.change  = "source";
            MyStruct.change = "source";
            ClassTaker(MyClass);
            StructTaker(MyStruct);
            Console.WriteLine(MyClass.change);
            Console.WriteLine(MyStruct.change);
        }
Exemple #2
0
 static void StructTaker(myStruct MyStruct)
 {
     MyStruct.change = "changed";
 }