Main function call your function : Main Function « Language Basics « VB.Net






Main function call your function

Main function call your function
Imports System

public class MainClass
    Shared Sub Main()
       Console.WriteLine("In Main! Calling SomeMethod()")
       SomeMethod()
       Console.WriteLine("Back in Main().")
    End Sub

    Shared Sub SomeMethod()
       Console.WriteLine("Greetings from SomeMethod!")
    End Sub

End Class



           
       








Related examples in the same category

1.Main function DemoMain function Demo