Goals of this chapter:
• Define the different types of operators and what makes them unique.
• Define the common patterns used in building each type of operator.
• Understand the best practices and patterns used for error handling.
LINQ to Objects is designed to be extended. This chapter discusses how new operators can be written to perform any custom requirement and then be used in exactly the same way as the standard query operators Microsoft has provided.
Although the standard query operators supplied are comprehensive, there is often the need to build more operators to satisfy a programming problem at hand. LINQ to Object operators are in their purest form, extension methods ...