PIbd-33_Yunusov_N.N._COP/YunusovComponentsLibrary/Form1/TestPerson.cs

28 lines
546 B
C#
Raw Normal View History

namespace YunusovComponentsLibrary
{
public class TestPerson
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Yourname { get; set; } = string.Empty;
public int Age { get; set; }
public TestPerson()
{ }
public TestPerson(int Id, string Name, string Yourname, int Age)
{
this.Id = Id;
this.Name = Name;
this.Yourname = Yourname;
this.Age = Age;
}
public override string ToString()
{
return $"[{Id}] {Name} {Yourname}. Возраст: {Age}";
}
}
}