Пример #1
0
        protected virtual void ValidateSource(AdjectiveJson source)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            source.Validate();
        }
Пример #2
0
        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);
        }