Tuples vs. Anonymous Types vs. Expando object. (in regards to LINQ queries)

Posted by punkouter on Stack Overflow See other posts from Stack Overflow or by punkouter
Published on 2010-06-11T19:10:00Z Indexed on 2010/06/11 19:12 UTC
Read the original article Hit count: 244

Filed under:
|
|
|

I am a beginner who finally started understanding anonymous types.

(see old post http://stackoverflow.com/questions/3010147/what-is-the-return-type-for-a-anonymous-linq-query-select-what-is-the-best-way-t)

So in LINQ queries you form the type of return value you want within the linq query right? It seems the way to do this is anonymous type right?

Can someone explain to me if and when I could use a Tuple/Expando object instead? They all seem very simliar?

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about anonymous-types