摘要: static void Main(string[] args) { Fruit f = new Fruit() { Weight = 1, Color = "" }; Change(ref f); //把引用对象作为参数传进一个方法,实际上是在栈上新分配了一块内存保存传入的地址 WriteLine( 阅读全文
posted @ 2018-11-14 16:18 Marco CAO 阅读(1281) 评论(0) 推荐(0) 编辑