Пример #1
0
 private StreetSuffixVariant(
     int streetSuffixVariantID,
     StreetSuffix streetSuffix,
     [CallerMemberName] string memberName = "") : this(
         streetSuffix,
         memberName.Replace('_', ' '))
 {
     StreetSuffixVariantID = streetSuffixVariantID;
 }
Пример #2
0
        public StreetSuffixVariant(
            [NotNull] StreetSuffix streetSuffix,
            [NotNull] string variantName) : this()
        {
            streetSuffix.IsNotNull(nameof(streetSuffix));
            variantName.IsNotNull(nameof(variantName));

            StreetSuffix = streetSuffix;
            VariantName  = variantName;
        }