Thursday, 11 February 2016

Public Static Void Main String Args meaning in C#

Public:- This is an access specifier. This means that main() can be called from anywhere.

Static:- This is a keyword which indicate that without creating an object of this class this method can be called. This is optional.

Void:- This is a return type and means that main() returns no value.

Main():- This is name of the method. It is special because it is start of the program.

String[]:- This is an array of string type.

Args:- This is name of parameter. "args" is not special; you could name it anything else and the program would work the same.