ASP.NET MVC, MVC, C#, PYTHON, JQUERY

Friday, September 7, 2018

Main() Method In C#

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");
}
}
Share:

0 comments:

Post a Comment

SOCIAL PROFILES

Search This Blog

Powered by Blogger.

Fixed Menu (yes/no)

yes

Contact Form

Name

Email *

Message *

Tags

Ads Section

Tags

ASP.NET MVC (7) C# (11) jQuery (1)