By tag: linq
0
kicks
Longest Common Prefix with C# and LINQ
Describing a problem in a functional style using LINQ in C# is sometimes easier than writing it imperatively.
0
kicks
Query XML With LINQ to Populate an asp:Repeater from Attribute Values
It shows a way to use LINQ to query an XML record with subsets and attributes then convert the results into a data table.
0
kicks
How to find Duplicate Records in DataTable Using LINQ
Here, I am explaining how to find the duplicate records in DataTable using LINQ.
0
kicks
LINQ 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.
0
kicks
Demystifying LINQ
LINQ adds enormous power to the .NET Framework through both the libraries it contains and the language additions that power it. It can help you write powerful code faster and that is less error prone, and yet some people still seem to eschew it for various reasons.
0
kicks
C#/.NET Little Wonders: Extension Methods Demystified
I have had the pleasure to program in a variety of programming languages throughout the years including the trifecta of C++, Java, and C#. It's often interesting how these three languages are so similar and yet have such key differences as well. Each of them has features that I miss when I work with...
0
kicks
LinqToWiki: A strongly typed library for accessing the Wikipedia API
“Strongly typed” means that it supports IntelliSense and that the query is checked at compile time.
0
kicks
Algorithm for parsing the LINQ to OQL expression
Is there an algorithm for parsing the LINQ to OQL expression?
I want to convert LINQ query to OQL, as my data source is queried through OQL.
OQL is Object Query Language (It is a subset of SQL).
It is used to query objects.
0
kicks
A 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.
0
kicks
SelectMany operator in Linq C#
SelectMany is an important operator in Linq. It takes each element of a sequence to an IEnumerable and flattens the resulting sequences into one sequence. You can find out more information about different overload list from the below link.
http://msdn.microsoft.com/en-us/library/system.linq.enume...
0
kicks
Where I can find SQL generated by Linq-To-SQL
Yesterday I have written a blog post about Where I can find SQL Generated by Entity Framework? and same day I got request from one of the our reader Ramesh that how I can find SQL generated by Linq-To-SQL?. I thought its a good idea to write a blog post to share amongst all who need this instead of ...
0
kicks
A 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.
0
kicks
Reading CSV with LinqPad
A brief tutorial of how to read CSV files in linqpad including screenshots.
0
kicks
Taking 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 collection.
0
kicks
A 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 collection.