PIbd-32.-Gerimovich-I.M.-COP/WinFormsAppTest/TestObject.cs
platoff aeeee 4def6e88ff done
2024-10-01 10:20:10 +04:00

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}";
}
}
}