how to write method outside the main method in the program class? - C#