c# out

在方法中一般的return只能返回1个参数,当需要返回多个参数时就可以用out static void Main(string[] args) { int n; bool b = MyTryParse("123", out n); Console.WriteLine(b); Console.Writ
posted @ 2023-12-18 17:18  四月柳巷  阅读(19)  评论(0编辑  收藏  举报