public static void IfNotDate([CanBeNull] DateTime?date, string name) { if (date == null) { return; } Fail.IfNotDate(date, Violation.WhenDateTimeIsNotDate(name, date.Value)); }
public static void IfNotDate([CanBeNull] DateTime?date, string name) { if (date == null) { return; } Fail.IfNotDate(date, Violation.WhenDateTimeIsNotDate(name, date.Value)); }