コード例 #1
0
 public StudentAddress(string country, string city, string adress)
 {
     CheckValid.IsString(ref country);
     this.country = country;
     CheckValid.IsString(ref city);
     this.city = city;
     CheckValid.IsAdress(ref adress);
     this.adress = adress;
 }
コード例 #2
0
ファイル: Student.cs プロジェクト: KolhanMykola/FivthLecture
 public Student(string firstName, string lastName, string dateOfAdmission, StudentAddress studentAddress)
 {
     CheckValid.IsString(ref firstName);
     this.firstName = firstName;
     CheckValid.IsString(ref lastName);
     this.lastName = lastName;
     CheckValid.IsDate(ref dateOfAdmission);
     this.dateOfAdmission = dateOfAdmission;
     this.studentAddress  = studentAddress;
 }