How to make a method generic when “type ‘T’ must be a reference type”? [duplicate] February 4, 2023 by Tarik You could try adding the constraint class: where T : class, ISearchableEntity