public void DoTestRef() { TestRef testRef = new TestRef(); testRef.Name = "1"; Console.WriteLine(testRef.Name); ChangeName(testRef); Console.WriteLine(testRef.Name); string sint = ""; ChangeName(sint); Console.WriteLine(sint); }
public void ChangeName(TestRef testRef) { testRef.Name = "testRef"; }