Answer the question
In order to leave comments, you need to log in
How does the compiler understand that the first function to be called will be Main()?
class Program
{
public static void Main(string [] args)
{
}
public static void DoSomething()
{
}
}
Answer the question
In order to leave comments, you need to log in
In the book CLR via C# - Programming on the Microsoft.NET Framework 4.5 in C#. 4th Edition on page 37 in the chapter Executing assembly code says:
Next, the main thread calls the method defined in the MSCorEE.dll library, which initializes the CLR, loads the EXE assembly, and then calls its Main method, which contains the entry point. This completes the procedure for launching a managed application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question