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
posted @ 2016-03-03 19:53