Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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)
 {
 }
Exemplo n.º 4
0
 /// <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)
 {
 }
Exemplo n.º 5
0
 /// <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)
 {
 }
Exemplo n.º 6
0
 /// <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)
 {
 }