KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When I constrain T with : Object like this: public interface IDoWork<T> where T : Object { T DoWork(); } I get the error: Constraint cannot be special class 'object' Does that mean there is an implied difference with the following that does compile? public interface IDoWork<T> // where T : Object { T DoWork(); }
Tags (comma-separated)
Save Edits
Cancel