BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | 2 | 3 | 4 | Next >> |
LINQ Style Variance and Standard Deviation OperatorsLINQ Style Variance and Standard Deviation Operators
In statistics, the variance and standard deviation for a set of data indicate how spread out the individual values are. Small values indicate that the elements of a set are close to the average value, whereas larger values suggest a greater spread.
A LINQ Style Partition OperatorA LINQ Style Partition Operator
Sometimes a sequence of values needs to be split into partitions, batches or chunks. This article describes an extension method that performs such an operation, accepting a collection of any type and returning a set of sequences from its contents.
A LINQ Style Replace OperatorA LINQ Style Replace Operator
It can be useful to search a sequence of items for a specific value or object and replace all matching instances with a new value. Language-Integrated Query (LINQ) does not provide a standard query operator for this purpose but creating one is simple.
Retrieving Items from the End of a SequenceRetrieving Items from the End of a Sequence
Language-Integrated Query (LINQ) provides the Take partitioning operator that extracts items from the start of any sequence. No similar operator is provided to retrieve the items from the end of a sequence. This article describes such a method.
Taking Every Nth Item from a SequenceTaking Every Nth Item from a Sequence
The standard query operators include methods to extract a number of items from the start of a sequence or to skip several items. This article describes a custom operator with a similar syntax that creates a sequence from every nth item in a source collect
A LINQ Style Duplicate Item FinderA LINQ Style Duplicate Item Finder
Language-Integrated Query (LINQ) includes a number of set operators, including one that removes duplicates from a sequence to return only distinct values. This article describes a custom set operator that returns only the duplicated values from a collecti
Generating Running Totals with LINQGenerating Running Totals with LINQ
A common task when working with sequences of numbers, or collections of objects that include a numeric property, is to generate a running total for those items. This can be achieved using Language-Integrated Query (LINQ) and a closure.
A LINQ Operator to Select Multiple Values from SequencesA LINQ Operator to Select Multiple Values from Sequences
Language-Integrated Query (LINQ) includes several projection operators but none that allow multiple items to be created from each item in a sequence. This article describes a custom operator that allows several selections to be made per item.
Creating A Generic Lambda-Based IComparer&lt;T&gt;Creating A Generic Lambda-Based IComparer<T>
Several standard .NET framework classes perform comparisons of values or objects and allow those comparisons to be controlled using an IComparer<T> implementation. This article describes a generic comparer that obtains results using lambda expressions.
A LINQ Style Range GeneratorA LINQ Style Range Generator
Language-Integrated Query (LINQ) provides the Enumerable.Range method that generates incrementing sequences of integers. This article describes a similar method that allows the creation of more complex ranges with the repeated application of a function.
<< Previous | 1 | 2 | 3 | 4 | Next >> |