/// <summary> /// Creates and initializes the rule. /// </summary> /// <param name="target">Object reference containing the data to validate.</param> /// <param name="handler">The address of the method implementing <see cref="ValidationRuleHandler"/>.</param> /// <param name="args">A <see cref="ValidationRuleArgs"/> object.</param> public ValidationRuleInfo(object target, ValidationRuleHandler handler, ValidationRuleArgs args) { _target = target; _handler = handler; _args = args; _ruleName = _handler.Method.Name + "!" + _args.ToString(); }