Toggle navigation
Log in
Sign Up
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Py Spark
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
Introducing
Radical.sh
Forget Code launches a powerful code generator for building API's
Forget_Code.Models.CategoryViewModel
Add a new snippet
Access Specifier
6
ADO .Net
3
Basics
16
Collections
1
Console
1
Date Functions
15
Delegates
1
File
7
Keywords
2
LINQ
1
Loops
1
Math Snippets
5
Memory Management
1
Operators
3
Reflection
2
Regular Expressions
3
String Functions
18
String Snippets
8
Threading
1
Type Casting
5
Choose Category
Main method - why with STATIC ? in C#
Forget Code
C#
Main method - why with STATIC ?
Why the main method is declared as static ?
static void Main(string[] args) { }
The main method is declared with Static keyword.
Since the main method is the parent method and starting point of an application, it should be executed without creating an object for it. So, C# automatically puts static keyword in the program.
Tags for Main method - why with STATIC ? in C#
DP_Basics
why should declare mainn method as static in c
why main() is declared as static in c
why main method is static in c
why is the main method declared static in C
what is work of the static keyword in main method of a c
what is the static keyword in main method in c
main(string[] args) c
Contribute to Forget Code, help others.
Add snippet