/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="propertyName">The name of the property this rule validates for. This may be blank.</param>
 /// <param name="description">A description message to show if the rule has been broken.</param>
 /// <param name="ruleDelegate">A delegate that takes no parameters and returns a boolean value, used to validate the rule.</param>
 public DelegateValidator(string propertyName, string description, SimpleValidatorDelegate ruleDelegate)
     : base(propertyName, description)
 {
     ValidatorDelegate = ruleDelegate;
 }
示例#2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="description">A description message to show if the rule has been broken.</param>
 /// <param name="ruleDelegate">A delegate that takes no parameters and returns a boolean value, used to validate the rule.</param>
 public DelegateValidator(string description, SimpleValidatorDelegate ruleDelegate) :
     base(description)
 {
     ValidatorDelegate = ruleDelegate;
 }
示例#3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="propertyName">The name of the property this rule validates for. This may be blank.</param>
 /// <param name="description">A description message to show if the rule has been broken.</param>
 /// <param name="ruleDelegate">A delegate that takes no parameters and returns a boolean value, used to validate the rule.</param>
 public DelegateValidator(string propertyName, string description, SimpleValidatorDelegate ruleDelegate) :
     base(propertyName, description)
 {
     ValidatorDelegate = ruleDelegate;
 }
示例#4
0
 public FPrezzoTotaleValidator(string propertyName, string description, SimpleValidatorDelegate ruleDelegate) : base(propertyName, description, ruleDelegate)
 {
 }