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