01 2020 档案

摘要:1.1类类型约束 有时候可能要求能将类型实参转换为特定的类类型,这是用类类型约束做到的。 public class TestDictionary<TKey, TValue> : Dictionary<TKey, TValue> where TValue : EntityBase { } 如上述代码, 阅读全文
posted @ 2020-01-15 20:18 安静点-- 阅读(779) 评论(0) 推荐(0) 编辑
摘要:public class Program { public static void Main(string[] args) { Pair<int, string> p = new Pair<int, string>(12,"name"); Console.WriteLine(p.First+","+ 阅读全文
posted @ 2020-01-11 15:19 安静点-- 阅读(127) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示