I am creating an anonymous type and I have conflicting field names.
The following code does not work, since i.Name and i.Target.Name have a property with the same name; "Name".
How do I get around this? Here is the code:
i => new { i.Name, i.Target.Name, i.EndDate, i.LastUpdated };
c # anonymous-types
leora
source share