/// <summary>
 /// Initializes a new instance of the <see cref="RangeValidator"/> class.
 /// </summary>
 /// <param name="type">The type.</param>
 /// <param name="errorMessage">The error message.</param>
 /// <param name="propertyName">The name of the property.</param>
 /// <param name="minValue">The minimum value.</param>
 /// <param name="maxValue">The maximum value.</param>
 /// <returns></returns>
 public static RangeValidator CreateValidator(Type type, string errorMessage, string propertyName, object minValue, object maxValue)
 {
     return(new RangeValidator(errorMessage, Validator.GetPropertyInfo(type, propertyName), minValue, maxValue));
 }