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 lo
If you declare the generic list as a global variable, you don't need to use return. I used the return function in my code anyway simply because marc_s said i couldn't. lol
public static class Globals
{
public static List CurPart = new List();
}
public List MSQueryRead1DArray(string sql, string db)
{
return Globals.CurPart;
}