LINQ
noun
say it: “LINK” /lɪŋk/
Language Integrated Query: C# methods and keywords for filtering, sorting, grouping and shaping data.
What is LINQ in C#?
LINQ — C# query operations for filtering, transforming, grouping, and ordering data.
class NameFilter
{
IEnumerable<string> ShortNames(IEnumerable<string> names)
{
return names
.Where(name => name.Length < 5)
.Select(name => name.ToUpper());
}
}
In a sentence
- “With LINQ, one line finds the five cheapest products.”
Level: Freelancer · More C# terms at this level
Updated