示例#1
0
 private HonorificPrefix(
     int honorificPrefixID,
     [NotNull] HonorificPrefixClassification prefixClassification,
     [NotNull] LinguisticGender linguisticGender,
     [NotNull] string prefixAbbreviation,
     [CallerMemberName, NotNull] string memberName = "") : this(
         prefixClassification,
         linguisticGender,
         prefixAbbreviation,
         memberName.Replace('_', ' '))
 {
     HonorificPrefixID = honorificPrefixID;
 }
示例#2
0
        public HonorificPrefix(
            [NotNull] HonorificPrefixClassification prefixClassification,
            [NotNull] LinguisticGender linguisticGender,
            [NotNull] string prefixAbbreviation,
            [NotNull] string prefixName) : this()
        {
            prefixClassification.IsNotNull(nameof(prefixClassification));
            linguisticGender.IsNotNull(nameof(linguisticGender));
            prefixAbbreviation.IsNotNull(nameof(prefixAbbreviation));
            prefixName.IsNotNull(nameof(prefixName));

            PrefixClassification = prefixClassification;
            LinguisticGender     = linguisticGender;
            PrefixAbbreviation   = prefixAbbreviation;
            PrefixName           = prefixName;
        }