示例#1
0
        public FontNameProperty(StringLiteral value)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            this.Value = value;
        }
示例#2
0
 public Section(
     StringLiteral name,
     IEnumerable <Section> sections,
     IEnumerable <QuestionRule> questionRules,
     IEnumerable <ValueTypeRule> valueTypeRules)
 {
     this.Name           = name;
     this.Sections       = sections;
     this.QuestionRules  = questionRules;
     this.ValueTypeRules = valueTypeRules;
 }
示例#3
0
        public Section(
            StringLiteral name,
            IEnumerable <Section> sections             = null,
            IEnumerable <QuestionRule> questionRules   = null,
            IEnumerable <ValueTypeRule> valueTypeRules = null)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            if (name.Value.IsNullOrWhiteSpace())
            {
                throw new ArgumentException("A non-null, non-empty section name must be given.");
            }

            this.Name           = name;
            this.Sections       = sections;
            this.QuestionRules  = questionRules;
            this.ValueTypeRules = valueTypeRules;
        }
示例#4
0
 public FontNameProperty(StringLiteral value)
 {
     this.Value = value;
 }