public interface IBaseService<T> where T:class, new()含义

泛型参数约束 主要用在基类上或者接口上

 IBaseService<T> where T:class 表示类型变量(参数,子类) 必需要继承IBaseService 

 IBaseService<T> where T:new() 表示类型变量 必需含有无参构造函数(默认或手动添加无参构造函数)

原文地址:https://www.cnblogs.com/lt123/p/7050895.html