I'm having trouble converting an string
to Int32
when calling it. This is what I'm struggling with.
public static int GetProgramLength()
{
Console.WriteLine("Please enter program length:");
return Int32.TryParse(Console.ReadLine);
}
Its telling me,
No overload for method, "Try Parse" takes 1 argument.