public static void IsValid <T>([InvokerParameterName] string paramName, T paramValue, IValueValidator <T> validator) { IsNotNull(nameof(validator), validator); IsValid(paramName, paramValue, validator.IsValid(paramValue)); }
public static bool IsValid <TValue>(this IValueValidator <TValue> validator, TValue value) => validator.IsValid(Option.None <object>(), value);
public static void IsValid <T>(string paramName, T paramValue, IValueValidator <T> validator) { Argument.IsNotNull("validator", validator); IsValid(paramName, paramValue, validator.IsValid(paramValue)); }
public static bool IsValid <TValue>(this IValueValidator <TValue> validator, TValue value) => validator.IsValid(value);