I am new to c# and encountered a slight problem when trying to display the output
When I type in: Help,? or stats no output is shown
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Type 'Help' to see list of commands");
Console.ReadLine();
}
private static void ParseInput(string input)
{
if (input.Contains("help") || input == "?")
{
Console.WriteLine("Available commands");
Console.WriteLine("====================================");
Console.WriteLine("Stats - Display player information");
Console.ReadLine();
}
else if (input == "stats")
{
Console.WriteLine("Current hit points:");
Console.ReadLine();
}
}
}
I already added Console.ReadLine(); Still nothing.
Tried to search for other threads like Console.WriteLine does not show up in Output window and Why doesn't Console.Writeline, Console.Write work in Visual Studio Express?