31 lines
662 B
C#
31 lines
662 B
C#
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}";
|
|
}
|
|
|
|
}
|
|
}
|