31 lines
662 B
C#
Raw Normal View History

2024-10-01 10:20:10 +04:00
namespace WinFormsAppTest
{
public class TestObject
{
public int Id { get; set; }
public string Surname { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public int Age { get; set; }
public TestObject()
{
}
public TestObject(int Id, string Surname, string Name, int Age)
{
this.Id = Id;
this.Surname = Surname;
this.Name = Name;
this.Age = Age;
}
public override string ToString()
{
return $"[{Id}] {Surname} {Name}. Возраст: {Age}";
}
}
}