28 lines
531 B
C#
28 lines
531 B
C#
namespace YunusovComponentsLibrary
|
|
{
|
|
public class TestPerson
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public string Surname { get; set; } = string.Empty;
|
|
|
|
public int Age { get; set; }
|
|
public TestPerson()
|
|
{ }
|
|
|
|
public TestPerson(int Id, string Name, string Surname, int Age)
|
|
{
|
|
this.Id = Id;
|
|
this.Name = Name;
|
|
this.Surname = Surname;
|
|
this.Age = Age;
|
|
}
|
|
public string ToString()
|
|
{
|
|
return $"{Id}. {Name} {Surname} Возраст: {Age}";
|
|
}
|
|
}
|
|
}
|