Generation Operators Repeat: generate a sequence that contains the number 7 ten times : Repeat « LINQ « VB.Net Tutorial






Imports System.IO
Imports System.Reflection
Imports System.Linq
Imports System.Xml.Linq

Public Class MainClass
   Public Shared Sub Main

        Dim numbers = Enumerable.Repeat(7, 10)

        For Each n In numbers
            Console.WriteLine(n)
        Next
   End Sub


End Class








12.9.Repeat
12.9.1.Generation Operators Repeat: generate a sequence that contains the number 7 ten times