//need to move default message to Messages.
        public TypeValidator(ValidatableTypes typeName)
            : base(String.Format("The value must be of type '{0}'", typeName))
        {
            this.typeName = typeName;

            SupportsStandaloneValidation = true;
        }
 public ModelClientValidationType(string errorMessage, ValidatableTypes typeName)
 {
     base.ErrorMessage = errorMessage;
     base.ValidationType = "type";
     base.ValidationParameters.Add("typeName", Convert.ToString(typeName));
 }