So I am making a C# Console Program that is a simple calculator, I am just learning C#.
Here is where I want to call main:
if (info.Key == ConsoleKey.Escape)
{
Environment.Exit(0);
}
else
{
}
I want to call main for the Addition, Subtraction, Multiplication and Division classes so it goes back to the start to where it asks 'Press 'A' for Addition' etc.
I tried putting "Main();" in else but it gives me and error saying "There is no argument given that corresponds to the required formal parameter 'args' of 'Program.Main(String[])"
How could I go about calling main in this class so it goes to the start of main?