@LasseV.Karlsen answered it in comment. I missed where T : class for methods.
where T : class
public static T MyExtensionMethod<T>(this IMyInterface<T> item, Guid id) where T : class { // code }
2.1m questions
2.1m answers
60 comments
57.0k users