BlackWaspTM
<< Previous | 1 | 2 | 3 | Next >> |
A Generic Equality Comparer for LINQA Generic Equality Comparer for LINQ
LINQ operators generally use lambda expressions to control their processing and output. Some operators use IEqualityComparer<T> implementations to compare values. This article describes a generic comparer, driven by delegates, designed for use in queries.
LINQ Outer JoinsLINQ Outer Joins
One commonly used feature of Language-Integrated Query (LINQ) is the facility to combine two sequences of related data using joins. The standard join operation provides an inner join but with a minor modification can be changed to give a left outer join.
LINQ Partitioning with IndexesLINQ Partitioning with Indexes
The LINQ partitioning operators allow the first elements of a sequence to be extracted, or skipped so that all other elements are returned. When using TakeWhile and SkipWhile, the index of each item can be included in the predicate.
Projecting Indexes with LINQProjecting Indexes with LINQ
All sequences have a notional order that can be expressed using index values in a similar manner to the indexes of an array. When projecting sequences using LINQ's Select and SelectMany operators, this index value can be included in the projection.
LINQ ToLookup OperatorLINQ ToLookup Operator
Language-Integrated Query (LINQ) provides several methods that allow a sequence to be manipulated, filtered and grouped. ToLookup performs a grouping operation that results in a sequence of key / value pairs, where each value is another sequence.
A LINQ Style Mode OperatorA LINQ Style Mode Operator
Language Integrated Query (LINQ) includes the Average operator that can be used to calculate the mean value of a sequence. This article implements a LINQ operator that determines the mode, which is the most common value or group of values.
Implementing the Zip Operator in .NET 3.5Implementing the Zip Operator in .NET 3.5
Microsoft introduced the Zip operator to Language-Integrated Query (LINQ) with the .NET framework version 4.0. This operator is not available in version 3.5 of the framework but can be implemented quite easily.
LINQ Zip OperatorLINQ Zip Operator
In the .NET framework version 4.0 Microsoft introduced the Zip method to the set of standard query operators. This extension method combines pairs of values from two sequences to generate a third set of values.
Custom LINQ Operators, Deferred Execution and ExceptionsCustom LINQ Operators, Deferred Execution and Exceptions
The Language-Integrated Query (LINQ) standard query operators that return enumerable sequences use deferred execution but validate any source sequences immediately. Custom LINQ operators should exhibit the same behaviour.
A LINQ Style Median OperatorA LINQ Style Median Operator
Language Integrated Query (LINQ) includes an operator that calculates the average value of a sequence containing numerical data. The Average method calculates the mean of the sequence. This article describes an operator that determines the median.
<< Previous | 1 | 2 | 3 | Next >> |