Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed warnings CS8603 and CS8625 in Encamina.Enmarcha.AspNet #112

Merged
merged 9 commits into from
May 2, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ namespace Encamina.Enmarcha.AspNet.Mvc.Bindings;
/// </summary>
public class CustomDateTimeModelBinderProvider : IModelBinderProvider
{
private readonly string customDateTimeFormat;
private readonly string? customDateTimeFormat;
HugoRamosEs marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Initializes a new instance of the <see cref="CustomDateTimeModelBinderProvider"/> class.
/// </summary>
public CustomDateTimeModelBinderProvider() : this(null!)
public CustomDateTimeModelBinderProvider() : this(null)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="CustomDateTimeModelBinderProvider"/> class with specific custom date time format.
/// </summary>
/// <param name="customDateTimeFormat">The custom <see cref="DateTime"/> format to use when binding models.</param>
public CustomDateTimeModelBinderProvider(string customDateTimeFormat)
public CustomDateTimeModelBinderProvider(string? customDateTimeFormat)
{
this.customDateTimeFormat = customDateTimeFormat;
}
Expand Down
Loading