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; }
public ContactPersonalData(FirstNames firstNames, LastNames lastNames) { FirstNames = firstNames ?? throw new ArgumentNullException(nameof(firstNames)); LastNames = lastNames ?? throw new ArgumentNullException(nameof(lastNames)); }