In C# what does where T : class mean?
where T : class
Ie.
public IList DoThis() where T : class
it means that the type used as T when the generic method is used must be a class - i.e. it cannot be a struct or built in number like int or double
T
int
double
// Valid: var myStringList = DoThis(); // Invalid - compile error var myIntList = DoThis();