add main method to c# class code example Example: c# main method static void Main(string[] args) { //... }