1. Declare "a" with the var keyword instead of as a string, so that it can be mapped to the anonymous type. 2. Create properties within the anonymous type to map the cleave, sleave and year fields. 3. Remove the ToString() invocation after SingleOrDefault() 4. Access the properties of the anonymous object "a".
- [DotNetDevelopment] Linq Help Santhosh Kumar
- [DotNetDevelopment] Re: Linq Help Cerebrus
- Re: [DotNetDevelopment] Linq Help Stephen Russell
