Вроде написал код , сделал класс, пишу там Console.ReadLine(); , ошибка Имя "Console.ReadLine" не существует в текущем контексте.
using System;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
string name = "";
string civilizationName = "";
int people = 0;
int army = 0;
double economy = 1.00;
double money = 5.00;
Console.WriteLine("Hello , write your name.");
name = Console.ReadLine();
Console.WriteLine("Name: ", name);
Console.WriteLine("Write name of your civilization");
civilizationName = Console.ReadLine();
Console.WriteLine("Civilization name", civilizationName);
Console.WriteLine("Hello , you can start your civilization . Write '1' to INFO , write '2' to Start. (read info before start)");
var choose = Int32.Parse(Console.ReadLine());
if (choose == 1)
{
Console.WriteLine($"Info = Name = {name}, Civilization Name = {civilizationName},People in Kingdom = {people} , Army in Kingdom = {army},Economy = {economy}, Money = {money}");
}
if (choose == 2)
{
Console.WriteLine("Okay... Starting the game.");
}
}
class SkipDay
{
Console.ReadLine();
}
}
}