EDN Admin
Well-known member
As discussed in earlier installments of this article series - most notably in An Introduction to LINQand The Standard Query Operators - one of LINQs primary components is its set of standardquery 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 implementthe IEnumerable interface. Some of the standard query operators that weve 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 its quite easy to createyour own query operators. Underneath the covers query operators are just methods that extend types that implement IEnumerable 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 LINQs functionality by creating your own extension methods. Read on to learn more!
Read More >
More...
While these standard query operators provide a great detail of functionality, there may be situations where they fall short. The good news is that its quite easy to createyour own query operators. Underneath the covers query operators are just methods that extend types that implement IEnumerable 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 LINQs functionality by creating your own extension methods. Read on to learn more!
Read More >
More...