示例#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();
        }
示例#2
0
 static void ClassTaker(Myclass c)
 {
     c.change = "popoxvac";
 }