摘要:
ref和out关键字都为引用类型,使用后都会修改实参的值 class Program { static void Main(string[] args) { int m = 10; int n; GetInt(ref m); GetInt2(out n) ; Console.WriteLine("m 阅读全文
posted @ 2021-04-15 10:24
兰冰点点
阅读(172)
评论(0)
推荐(0)
|
摘要:
ref和out关键字都为引用类型,使用后都会修改实参的值 class Program { static void Main(string[] args) { int m = 10; int n; GetInt(ref m); GetInt2(out n) ; Console.WriteLine("m 阅读全文
posted @ 2021-04-15 10:24
兰冰点点
阅读(172)
评论(0)
推荐(0)
|