21 lines
384 B
C#
21 lines
384 B
C#
namespace EF_Demo;
|
|
|
|
public static class Util
|
|
{
|
|
public static void EnterToContinue(bool clearConsole = true)
|
|
{
|
|
Console.WriteLine("ENTER to continue");
|
|
Console.ReadLine();
|
|
if (clearConsole)
|
|
{
|
|
Console.Clear();
|
|
}
|
|
}
|
|
|
|
public static int ReadNumber()
|
|
{
|
|
int number;
|
|
while (!int.TryParse(Console.ReadLine(), out number)) ;
|
|
return number;
|
|
}
|
|
} |