Advertisement
SomeBody_Aplle

Untitled

Mar 29th, 2021
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. class Clients
  2.     {
  3.         public Clients()
  4.         {
  5.             if (Age < 0)
  6.                 throw new Exception("Возраст не может быть отрицательным");
  7.         }
  8.  
  9.         public string FirstName { get; set; }
  10.         public string SecondName { get; set; }
  11.         public string FullName { get { return $"{FirstName} {SecondName}"; } set { } }
  12.         public uint Age { get; set; }
  13.         public string Email { get; set; }
  14.         public string Adress { get; set; }
  15.         public int PhoneNumber { get; set; }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement