May 2010
Intermediate to advanced
1272 pages
61h 18m
English
The goal of this paragraph is to explain how you can execute a classic LINQ query over intensive processing and measure its performance in milliseconds. Consider the following code:

Given a range of predefined numbers (Enumerable.Range), the code looks for odd numbers and collects them into an IEnumerable(Of Integer). To measure performance, we can take advantage of the Stopwatch class that basically starts a counter (Stopwatch.StartNew). Because, as you already know, LINQ queries are effectively executed when you use them, such a query is executed when the code invokes the Count property to show ...
Read now
Unlock full access