摘要: out ———— 一个引用传递1、如果一个方法中的变量在使用out作为参数时,在方法中对out参数所作的更改都会反映到该变量。static void Method(out int iValue){ iValue = 44;}static void Main(){ int a; //不必初始化 Method(out a);//显示使用out关键字 Co... 阅读全文
posted @ 2009-08-17 11:45 坤坤 阅读(410) 评论(2) 推荐(1) 编辑