How i can return list with anonymous type, because with this code i get
\"The type or namespace name \'T\' could not be found (are you missing a using directive or a
The class Tuple<> is made for situations like this. Creating a custom class as already suggested is clearer, but Tupple gets the job done too.
e.g.
.Select(row => new Tuple(row.IdMember,row.Profile_Information.UserName))
to access the member properties at the other side of the wire, you'll need to use:
var id=t.Item1
var name=t.Item2