protected virtual void ValidateSource(AdjectiveJson source) { if (source == null) { throw new ArgumentNullException(nameof(source)); } source.Validate(); }
public AdjectiveRule(AdjectiveJson source) { this.ValidateSource(source); string[] variants = source.Masculine.Skip(1) .Concat(source.Feminine) .Concat(source.Neuter) .Concat(source.Plural) .ToArray(); this.Value = this.GetRuleString(source.Name, variants); }