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".

Reply via email to