2016年3月3日

where T : class的含义

摘要: public class DbEntityEntry<TEntity> where TEntity : class 这是参数类型约束,指定T必须是Class类型。 .NET支持的类型参数约束有以下五种:where T : struct | T必须是一个结构类型where T : class | T必 阅读全文

posted @ 2016-03-03 19:53 robin_bjut 阅读(277) 评论(2) 推荐(0)

导航