Public Class f Public Shared Function a(ByVal n As Integer) If n > 10 Then Exit Function Else Console.WriteLine(n) n = n + 1 Return f.a(n) End If End Function End Class