C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

Why do I get a "CS5001: does not have an entry point defined" error when compiling?

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

Answer:

The most common problem is that you used a lowercase 'm' when defining the Main method. The correct way to implement the entry point is as follows:
class test
{
static void Main(string[] args) {}
}

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?What does the keyword virtual mean in the method definition?