Re: LINQ - Speed penalty/anonymous types
am 31.03.2008 15:27:32 von PeterLarsenThanks for your comment.
It's just sample code - i'm not using it anywhere.
/Peter
>
> No. It's anonymous at compile time, but it's a perfectly ordinary type
> as far as the CLR is concerned. All you're doing in the above is
> calling a constructor and then retrieving properties.
>
> Of course, in the above case you could just go directly to the members
> of the list, but I'm assuming in real life that you actually have a
> reason to use the anonymous type in the first place.
>
> --
> Jon Skeet -
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> World class .NET training in the UK: http://iterativetraining.co.uk