Update DateRange.cs

pull/6/head
Rick Anderson 2022-07-14 13:30:14 -10:00 committed by GitHub
parent 25c92daa1a
commit f5e8acaf1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ namespace BindTryParseAPI.Models
To = DateOnly.Parse(to);
}
public static bool TryParse(string? value, IFormatProvider? provider, out DateRange? result)
public static bool TryParse(string? value, IFormatProvider? provider,
out DateRange? result)
{
if (string.IsNullOrEmpty(value) || value.Split('-').Length != 2)
{