Код: Выделить всё
public class Employee
{
public string Name { get; set; }
public string City{ get; set; }
public string Country{ get; set; }
}
Код: Выделить всё
Когда я обновил класс «Сотрудник», как показано ниже, он читается правильно;
Код: Выделить всё
public class Employee
{
public string Name { get; set; }
public string City{ get; set; }
public string Country{ get; set; }
public override string ToString()
{
return Name + " " + City + " " + Country;
}
}
Подробнее здесь: https://stackoverflow.com/questions/756 ... ntent-of-w