[Solved] Generics C# organization of methods that depends on type [closed]

Introduction Solution The reason you’re getting the compiler error is that you’ve pushed the generic constrains to the individual methods rather than putting the restraint on the class. The way you have it, there’s no way to override the intrinsically generic method GetOrderingFunc<T> with a method that returns a Expression<Func<User, string>>. What you’ve posted works … Read more