Goals of this chapter:
• Define new C# 4.0 language features.
• Demonstrate the new language features in the context of LINQ to Objects.
C# is an evolving language. This chapter looks at the new features added into C# 4.0 that combine to improve code readability and extend your ability to leverage LINQ to Object queries over dynamic data sources. The examples in this chapter show how to improve the coding model for developers around reading data from various sources, including text files and how to combine data from a COM-Interop source into a LINQ to Objects query.
C# is still a relatively new language (circa 2000) and is benefiting from continuing investment by Microsoft’s languages team. The C# ...