Anonymous Types and Lambdas

added by KodefuGuru
11/22/2010 11:08:34 AM

0 Kicks, 82 Views

I saw an interesting tweet from @remitaylor yesterday. "Cannot assign lambda expression to anonymous type property." :sadface: So I can't include a lambda as a value in any new { ... } in C# Unfortunately, this is true. I tried it myself. Here's how to make it work.


0 comments