示例#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;
 }
示例#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;
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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)
 {
 }