Castle.MonoRail.Framework.DataBindAttribute.ConfigureValidator C# (CSharp) Méthode

ConfigureValidator() protected méthode

Configures the validator.
protected ConfigureValidator ( SmartDispatcherController controller, IDataBinder binder ) : void
controller SmartDispatcherController The controller.
binder IDataBinder The binder.
Résultat void
		protected void ConfigureValidator(SmartDispatcherController controller, IDataBinder binder)
		{
			if (validate)
			{
				binder.Validator = controller.Validator;
			}
			else
			{
				binder.Validator = null;
			}
		}