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