예제 #1
0
        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);
        }
예제 #2
0
 public void ChangeName(TestRef testRef)
 {
     testRef.Name = "testRef";
 }