public static ValidationResult IsDefault <TValue>(this IValidatableObject validatable, TValue value, string name) { return(validatable.Is(v => v != null && v.Equals(default(TValue)), value, name)); }