Skip to content

Commit

Permalink
Fix CS8618 warnings
Browse files Browse the repository at this point in the history
Code CS1591: Non-nullable field must contain a non-null value when exiting constructor.
  • Loading branch information
Nirmal4G committed Sep 10, 2021
1 parent f697af0 commit 19c62a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ public enum Animal
public partial class ModelWithValueProperty : ObservableObject
{
[ObservableProperty]
private string value;
private string? value;
}

public partial class ModelWithValuePropertyWithValidation : ObservableValidator
{
[ObservableProperty]
[Required]
[MinLength(5)]
private string value;
private string? value;
}
}
}

0 comments on commit 19c62a3

Please sign in to comment.