main function outside of a class. Why do we not do it in C#?main function in a class in C++? Would it be accessible to everyone? Does including the Main method in a class in C# make it "safer" than it being present at a global scope? What is the reason behind this?