Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Repeat/Visual-Basic-.NET/repeat.vb
Normal file
17
Task/Repeat/Visual-Basic-.NET/repeat.vb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Module Module1
|
||||
|
||||
Sub Repeat(count As Integer, fn As Action(Of Integer))
|
||||
If IsNothing(fn) Then
|
||||
Throw New ArgumentNullException("fn")
|
||||
End If
|
||||
|
||||
For i = 1 To count
|
||||
fn.Invoke(i)
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Sub Main()
|
||||
Repeat(3, Sub(x) Console.WriteLine("Example {0}", x))
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue