Skip to main content
Sign in
Home
Samples
Languages
Extensions
Documentation
Community
Overview
Visual C++
Visual C#
Visual Basic
JavaScript
Visual F#
Get started for free
Visual Studio Developer Center
>
Languages
>
Visual Basic
>
101 Visual Basic LINQ Samples
>
LINQ Query Samples
LINQ Query Samples
Aggregate Operators
Count - Simple
Count - Conditional
Count - Nested
Count - Grouped
Sum - Simple
Sum - Projection
Sum - Grouped
Min - Simple
Min - Projection
Min - Grouped
Min - Elements
Max - Simple
Max - Projection
Max - Grouped
Max - Elements
Average - Simple
Average - Projection
Average - Grouped
Aggregate - Simple
Aggregate - Seed
Conversion Operators
ToArray
ToList
ToDictionary
OfType
Element Operators
First - Simple
First - Condition
FirstOrDefault - Simple
FirstOrDefault - Condition
ElementAt
Generation Operators
Range
Repeat
Grouping Operators
GroupBy - Simple 1
GroupBy - Simple 2
GroupBy - Simple 3
GroupBy - Nested
GroupBy - Comparer
GroupBy - Comparer, Mapped
Join Operators
Cross Join
Group Join
Cross Join with Group Join
Left Outer Join
Misc. Operators
Concat - 1
Concat - 2
EqualAll - 1
EqualAll - 2
New Samples
Working with Dates - 1
System.Diagnostics
Working with the File System - 1
Working with the File System - 2
Working with the File System - 3
Command Line Arguments
Working with the Registry - 1
Working with the Registry - 2
Recent Document History
IE Favorites - 1
Reflection - 1
Reflection - 2
Reflection - 3
Ordering Operators
OrderBy - Simple 1
OrderBy - Simple 2
OrderBy - Simple 3
OrderBy - Comparer
OrderByDescending - Simple 1
OrderByDescending - Simple 2
OrderByDescending - Comparer
ThenBy - Simple
ThenBy - Comparer
ThenByDescending - Simple
ThenByDescending - Comparer
Reverse
Partitioning Operators
Take - Simple
Take - Nested
Skip - Simple
Skip - Nested
TakeWhile - Simple
TakeWhile - Indexed
SkipWhile - Simple
SkipWhile - Indexed
Projection Operators
Select - Simple 1
Select - Simple 2
Select - Transformation
Select - Anonymous Types 1
Select - Anonymous Types 2
Select - Anonymous Types 3
Select - Indexed
Select - Filtered
SelectMany - Compound from 1
SelectMany - Compound from 2
SelectMany - Compound from 3
SelectMany - from Assignment
SelectMany - Multiple from
SelectMany - Indexed
Quantifiers
Any - Simple
Any - Grouped
All - Simple
All - Grouped
Query Execution
Deferred Execution
Immediate Execution
Query Reuse
Restriction Operators
Where - Simple 1
Where - Simple 2
Where - Simple 3
Where - Drilldown
Where - Indexed
Set Operators
Distinct - 1
Distinct - 2
Union - 1
Union - 2
Intersect - 1
Intersect - 2
Except - 1
Except - 2