How to return a generic list collection in C#?
问题 I have some linq to sql method and when it does the query it returns some anonymous type. I want to return that anonymous type back to my service layer to do some logic and stuff on it. I don't know how to return it though. I thought I could do this public List<T> thisIsAtest() { return query; } but I get this error Error 1 The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?) So not sure what assembly I am missing or if that is even