C# (Sharp) Programming Language Question:
Download Questions PDF

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

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?