An Extensive Examination of LINQ: Extending LINQ - Adding Query Operators | CodeGuru

An Extensive Examination of LINQ: Extending LINQ – Adding Query Operators

As discussed in earlier installments of this article series–most notably in, An Introduction to LINQ and The Standard Query Operators–one of LINQ’s primary components is its set of standard query operators. A query operator is a method that operates on a sequence of data and performs some task based on that data, are implemented as […]

Written By
CodeGuru Staff
CodeGuru Staff
Jul 8, 2010
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

As discussed in earlier installments of this article series–most notably in, An Introduction to LINQ and The Standard Query Operators–one of LINQ’s primary components is its set of standard query operators. A query operator is a method that operates on a sequence of data and performs some task based on that data, are implemented as extension methods on types that implement the IEnumerable<T> interface. Some of the standard query operators that we’ve explored throughout the articles in this series include: Count, Average, First, Skip, Take, Where, and OrderBy, among others.

While these standard query operators provide a great detail of functionality, there may be situations where they fall short. The good news is that it’s quite easy to create your own query operators. Underneath the covers, query operators are just methods that extend types that implement IEnumerable<T> and iterate over the sequence performing some task, such as computing the total number of items in the sequence, computing the average, filtering the results, or ordering them. This article examines how to extend LINQ’s functionality by creating your own extension methods. Read the full article, An Extensive Examination of LINQ: Extending LINQ – Adding Query Operators.

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.