摘要:
ref和out关键字都为引用类型,使用后都会修改实参的值 class Program { static void Main(string[] args) { int m = 10; int n; GetInt(ref m); GetInt2(out n) ; Console.WriteLine("m 阅读全文
摘要:
ref和out关键字都为引用类型,使用后都会修改实参的值 class Program { static void Main(string[] args) { int m = 10; int n; GetInt(ref m); GetInt2(out n) ; Console.WriteLine("m 阅读全文
|