I remember reading something in a Java manual about how the class that contained the main entry point of the program needed to have the same name as the file name. Is there such a rule or a similar one in C#? Can I put my main method inside a class regardless of that classes name or the filename?