fork(1) download
  1. Imports System
  2.  
  3. Public Class TestMethods
  4. Public Shared Function Foo() As Boolean
  5. Console.WriteLine("[Calling Foo]")
  6. Return True
  7. End Function
  8.  
  9. Public Shared Function Bar() As Boolean
  10. Console.WriteLine("[Calling Bar]")
  11. Return True
  12. End Function
  13. End Class
  14.  
  15. Public Class Test
  16. Public Shared Sub Main()
  17. Dim tm = new TestMethods
  18.  
  19. If tm.Foo() OrElse tm.Bar() Then
  20. Console.WriteLine("Ok")
  21. Else
  22. Console.WriteLine("Fail")
  23. End If
  24. Console.ReadLine()
  25. End Sub
  26. End Class
Success #stdin #stdout 0.02s 24336KB
stdin
Standard input is empty
stdout
[Calling Foo]
Ok