2018年9月4日

摘要: public static void RefMethod(ref int i) //参数使用了ref关键字 { i++; } public static void OutMethod(out int i) //参数使用了out关键字 { i = 0; //out参数规定,参数在方法体内必须被初始化。 i++; } 阅读全文

posted @ 2018-09-04 14:05 yacbo 阅读(162) 评论(0) 推荐(0) 编辑


Copyright © 2024 yacbo
Powered by .NET 8.0 on Kubernetes