30 lines
570 B
C#
30 lines
570 B
C#
namespace ShabComponentsLibrary
|
|
{
|
|
public class TestPerson
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string FirstName { get; set; } = string.Empty;
|
|
|
|
public string LastName { get; set; } = string.Empty;
|
|
|
|
public int Age { get; set; }
|
|
|
|
public TestPerson()
|
|
{ }
|
|
|
|
public TestPerson(int Id, string FirstName, string LastName, int Age)
|
|
{
|
|
this.Id = Id;
|
|
this.FirstName = FirstName;
|
|
this.LastName = LastName;
|
|
this.Age = Age;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"[{Id}] {FirstName} {LastName}. Возраст: {Age}";
|
|
}
|
|
}
|
|
}
|