In C# what does where T : class mean?
where T : class
Ie.
public IList<T> DoThis<T>() where T : class
Simply put this is constraining the generic parameter to a class (or more specifically a reference type which could be a class, interface, delegate, or array type).
See this MSDN article for further details.
2.1m questions
2.1m answers
60 comments
57.0k users