private void ValidateCaseRule(DefaultNamingRules rules)
        {
            if ((rules & DefaultNamingRules.CamelCase) != 0 &&
                ((rules & DefaultNamingRules.LowerCase) != 0 ||
                (rules & DefaultNamingRules.UpperCase) != 0))
                throw new ArgumentException("Invalid casing rule.", "rules");

            // TODO: do the same for other casing rules
        }
        private void ValidateCaseRule(DefaultNamingRules rules)
        {
            if ((rules & DefaultNamingRules.CamelCase) != 0 &&
                ((rules & DefaultNamingRules.LowerCase) != 0 ||
                 (rules & DefaultNamingRules.UpperCase) != 0))
            {
                throw new ArgumentException("Invalid casing rule.", "rules");
            }

            // TODO: do the same for other casing rules
        }
 public RuledNamingConvention(DefaultNamingRules rules)
 {
     ValidateCaseRule(rules);
     Rules = rules;
 }
 public RuledNamingConvention(DefaultNamingRules rules)
 {
     ValidateCaseRule(rules);
     Rules = rules;
 }