Код: Выделить всё
public string Name
{
get{ return _name; }
set { _name = value; }
}
Код: Выделить всё
public string Name
{
get => _name;
set => _name = value;
}
Невозможно ли иметь тело выражения в свойстве?
Подробнее здесь: https://stackoverflow.com/questions/446 ... s-to-error
Мобильная версия