Skip to content

Commit 19c62a3

Browse files
committed
Fix CS8618 warnings
Code CS1591: Non-nullable field must contain a non-null value when exiting constructor.
1 parent f697af0 commit 19c62a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitTests/UnitTests.NetCore/Mvvm/Test_ObservablePropertyAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,15 @@ public enum Animal
235235
public partial class ModelWithValueProperty : ObservableObject
236236
{
237237
[ObservableProperty]
238-
private string value;
238+
private string? value;
239239
}
240240

241241
public partial class ModelWithValuePropertyWithValidation : ObservableValidator
242242
{
243243
[ObservableProperty]
244244
[Required]
245245
[MinLength(5)]
246-
private string value;
246+
private string? value;
247247
}
248248
}
249249
}

0 commit comments

Comments
 (0)