摘要:
传值和传址的区别(值类型和引用类型的区别 )usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classPerson{publicintBlood=10;}classProgram{publicstaticvoidAdd(intx){x+=10;Console.WriteLine("值类型当参数被传递并修改之后:"+x);}publicstaticvoidAdd(Personperson){person.Blood+=10;Console.Wri 阅读全文
posted @ 2011-06-20 23:20 hehoge 阅读(893) 评论(0) 推荐(0) 编辑