Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
as in JAVA we can run a programme without main()
ex
C#
class MainMethodNot
{
static
{
System.out.println("This java program have run without the run method");
System.exit(0);
}
}



IS this is possible in c# ? programe without Main()
Posted

1 solution

HI,

Main() is the begining or the starting point of the execution. If the main() will be missing then The compilor compiler will not get a place to start from and will through error.

Thanks
 
Share this answer
 
v2
Comments
siddharth629 16-Jan-13 3:25am    
sir,
means in C# IT IS NOT POSSIBLE, BUT in java it could work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900