Witam, pewnie znowu robię jakiś błąd którego nie widzę albo coś źle napisałem, bo jak próbuje zapisać własność w skróconej formie to mi nie działa program. Proszę o wskazówkę.
class Time
{
private int Second = 60;
public int second
{
get
{
return Second;
}
set
{
Second = value;
}
}
//public int second {get; set;}
}
class Program
{
static void Main(string[] args)
{
Time present = new Time();
Console.WriteLine("Podaj liczbę minut");
String text = Console.ReadLine();
int value = int.Parse(text);
int value1 = present.second;
double result = value1 * value;
Console.WriteLine(value + " minut po przeliczeniu na sekundy to: \n" + result + " sekund");
Console.Read();
}
}