public static void ChangeHello(ref HelloWorld hw) { hw.A = 'b'; Console.WriteLine(hw.A); }
//Main_4_2_1 public static void Main_4_2_1(string[] args) { //����һ��string���� string myMsg = "Anytao is anytao."; //�ı�stringֵ������ʾ ChangeMsg(myMsg); //��ǰ��myMsg�Ƿ����˸ı䣿 ShowMsg(myMsg); HelloWorld hw = new HelloWorld(); hw.A = 'a'; ChangeHello(ref hw); Console.WriteLine(hw.A); }