Summary

In this chapter, you got the most out of some advanced language features that provide both special support for the LINQ technology and improvements to your coding experience. Local type inference enables developers to avoid specifying types in local variables assignment because the Visual Basic compiler automatically provides the most appropriate one. Array literals extend local type inference to arrays. Extension methods allow extending existing objects, even if you do not own the source code (such as in case of the .NET Framework) with custom methods. Anonymous types enable you to generate on-the-fly no-name types that you often use within LINQ queries. Relaxed delegates provide the ability to write code smarter and faster because ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.