May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Most of LINQ members are offered by the System.Enumerable class. This also exposes two shared methods, Range and Repeat, which provide the ability to generate sequences of elements. Range allows generating a sequence of integer numbers, as shown in the following code:
![]()
It returns IEnumerable(Of Integer); therefore you can then query the generated sequence using LINQ. Repeat allows instead generating a sequence where the specified item repeats the given number of times. Repeat is generic in that you need to specify the item’s type first. For example, the following code generates a sequence of 10 Boolean values and True is repeated ...
Read now
Unlock full access