Castle.MonoRail.Framework.DataBindAttribute.ConfigureValidator C# (CSharp) Method

ConfigureValidator() protected method

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