dc

dc

  • NA
  • 663
  • 0

main method

May 31 2010 12:25 AM
I have the following questions to ask about the 'generated' code I have seen so far:
1. I have seen static void Main() method in a file called program.cs. Does this
instantiate an object or is this just 'class' library code? Please explain.
2. I have seen where the same solution can have several static void Main() method
in a file called program.cs. Basically there several of this program.cs files. Thus,
can you tell me why you would see so many and how can the code be setup to know what
program.cs to use?

Answers (1)