Answer the question
In order to leave comments, you need to log in
Is it possible to specify a generic type as the type of a method?
There is a method
public static List<T>(DbContext cntx, string tableName){...}
Answer the question
In order to leave comments, you need to log in
Yes. But then sort it out yourself, where will you get this T from.
public static T List<T>(DbContext cntx, string tableName)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question