does main method need to be public in c ssharp code example Example: c# main method static void Main(string[] args) { //... }