what does static void Main(string[] args) in C# mean????????

Answer Posted / elan

It is the code starting point and when a function specified with static it will be always available in App Domain (in application). Also no need to create any instance and Classname.Function / Method name will work. The usage of string args[] is read the command line argument.

Is This Answer Correct ?    23 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does namespace mean?

686


What is use of abstract class in c#?

695


What are custom attributes in c#?

654


Explain the serialization in .net

725


Explain what are three test cases you should go through in unit testing?

702


What is the advantage of constructor in c#?

677


What is the .NET collection class that allows an element to be accessed using a unique key?

810


How do I declare a pure virtual function in c#?

739


What is an array? Give the syntax for a single and multi-dimensional array?

662


What is the difference between namespace and class?

630


Define multicast delegate in c#?

682


What is the correct way of declaring an xml namespace?

636


What is the difference between properties and indexer in c#?

601


Explain the difference between abstract class and interface in .net?

668


How does dll hell solve in .net?

673