internal override string Validate(object value) {
if (value == null) {
return "A value is required.";
}
var s = value as string;
if (s != null && String.IsNullOrWhiteSpace(s)) {
return "A value is required.";
}
return null;
}
}