摘要: 1.1类类型约束 有时候可能要求能将类型实参转换为特定的类类型,这是用类类型约束做到的。 public class TestDictionary<TKey, TValue> : Dictionary<TKey, TValue> where TValue : EntityBase { } 如上述代码, 阅读全文
posted @ 2020-01-15 20:18 安静点-- 阅读(797) 评论(0) 推荐(0)