摘要: 示例代码: static void Main(string[] args) { ResultModel res = new ResultModel(); res.code = 0; res.msg = "初始值"; OtherMehod(res); Console.WriteLine(res.msg 阅读全文
posted @ 2020-08-21 13:52 温故纳新 阅读(616) 评论(0) 推荐(0) 编辑
摘要: Dictionary 可以简单的看作是KeyValuePair 的集合; 示例: static void Main(string[] args) { Dictionary<int, string> dics = new Dictionary<int, string>(); dics.Add(1, " 阅读全文
posted @ 2020-08-21 13:33 温故纳新 阅读(1047) 评论(0) 推荐(0) 编辑