摘要: 先看一个简单的例子。我们建立一个Console Application.写一个Class,代码然后在入口程序中,[代码]OK, 输出结果为,[代码]在C#,Class类型作为参数的话,是Passing reference types by value(按值传递引用类型)。方法Foo1,Foo2,Foo4属于这种情况。如果使用ref操作符,则为Passing reference types by r... 阅读全文
posted @ 2010-10-01 18:32 idealcat 阅读(578) 评论(0) 推荐(0) 编辑