3 ms·
Another example of Anonymous types would be a simple .Select(x=> new {x.ID, x.Name}); Sometimes people lump these in with dynamic objects but those are a very
by to11mtm 5y ago
Another example of Anonymous types would be a simple .Select(x=> new {x.ID, x.Name});
Sometimes people lump these in with dynamic objects but those are a very different class of thing indeed.
Now, what would be -really- nice is if we had a way to specify that an anonymous type implements an interface. That could potentially simplify a -lot- of DTO modeling.