Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Clients
- {
- public Clients()
- {
- if (Age < 0)
- throw new Exception("Возраст не может быть отрицательным");
- }
- public string FirstName { get; set; }
- public string SecondName { get; set; }
- public string FullName { get { return $"{FirstName} {SecondName}"; } set { } }
- public uint Age { get; set; }
- public string Email { get; set; }
- public string Adress { get; set; }
- public int PhoneNumber { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement