Main() Method In C#
Hello Friends In this article we will learn about What is Main() Method in C#.
- Main() Method is an entry point of an application.
- Main () Method means That execution of code start from Main() method.
- When an application starts Execution C# compiler looks for in the source file is the Main() method.
- You must include Main () method in a class make your program executable.
Example:-
public Class HelloCsharp
{
public static void Main(string[] args) //Main () method
{
System.Console.WriteLine("Hello Friends Welcome To Csharp4tech");
}
}






0 comments:
Post a Comment