MvcValidatorToolkit/Validators/ValidateRange.cs
/// <summary>
/// Validates the given element using the Values collection and generates an error if 
/// invalid.
/// </summary>
Validates the given element using the Values collection and generates an error if
invalid.
Validates the given element using the Values collection and generates an error if invalid .
protected override void Validate(string element)
		{
			int value;
			if(!Values.ContainsKey(element) || string.IsNullOrEmpty(Values[element]) || !int.TryParse(Values[element], out value) || value < Min || value > Max)
				InsertError(element, Min, Max);
		}
protected override void Validate ( string element ) { int value ; if ( ! Values . ContainsKey ( element ) || string . IsNullOrEmpty ( Values [ element ] ) || ! int . TryParse ( Values [ element ] , out value ) || value < Min || value > Max ) InsertError ( element , Min , Max ) ; }
Validates the given element using the Values collection and generates an error if
invalid.
Validates the given element using the Values collection and generates an error if invalid .
element
string