/// <summary> /// Initializes a new instance of the <see cref="RuleBuilderSource" /> class. /// </summary> /// <param name="factory"> The factory. </param> /// <param name="action"> The action. </param> protected RuleBuilderSource(RuleBuilderFactory factory, Action action) { if(factory == null) { throw new ArgumentNullException("factory"); } if(action == null) { throw new ArgumentNullException("action"); } this.factory = factory; this.action = action; }
/// <summary> /// Initializes a new instance of the <see cref="RuleBuilderSource" /> class. /// </summary> /// <param name="factory"> The factory. </param> /// <param name="action"> The action. </param> protected RuleBuilderSource(RuleBuilderFactory factory, Action action) { if (factory == null) { throw new ArgumentNullException("factory"); } if (action == null) { throw new ArgumentNullException("action"); } this.factory = factory; this.action = action; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyRuleSource" /> class. /// </summary> /// <param name="factory"> The factory. </param> /// <param name="action"> The action. </param> public PropertyRuleSource(RuleBuilderFactory factory, Action action) : base(factory, action) { }
/// <summary> /// Initializes a new instance of the <see cref="FieldRuleSource" /> class. /// </summary> /// <param name="factory"> The factory. </param> /// <param name="action"> The action. </param> public FieldRuleSource(RuleBuilderFactory factory, Action action) : base(factory, action) { }