コード例 #1
0
 public ContactPersonalData(FirstNames firstNames, LastNames lastNames, DateTime?dateOfBirth = null, Sex sex = Sex.Unknown, RelationType relationType = RelationType.None)
 {
     FirstNames   = firstNames ?? throw new ArgumentNullException(nameof(firstNames));
     LastNames    = lastNames ?? throw new ArgumentNullException(nameof(lastNames));
     DateOfBirth  = dateOfBirth;
     Sex          = sex;
     RelationType = relationType;
 }
コード例 #2
0
 public ContactPersonalData(FirstNames firstNames, LastNames lastNames)
 {
     FirstNames = firstNames ?? throw new ArgumentNullException(nameof(firstNames));
     LastNames  = lastNames ?? throw new ArgumentNullException(nameof(lastNames));
 }