class mBase { public string a; } class mBaseList<T> : List<T> where T : mBase, new() { } class mSun :mBase { public string b; public mSun(string b) { this.b = b; } } class mSunList : mBaseList<mSun> { public mSunList() { } }
new()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)