摘要: out 关键字会导致参数通过引用来传递。这与 ref 关键字类似,不同之处在于 ref 要求变量必须在传递之前进行初始化。若要使用 out 参数,方法定义和调用方法都必须显式使用 out 关键字。例如:class OutExample { static void Method(out int i) ... 阅读全文
posted @ 2015-05-20 16:49 Entropy_lxl 阅读(2443) 评论(0) 推荐(0) 编辑