Skip to content

Commit b93ceeb

Browse files
committed
missed nullability on field now that nullability is being checked.
1 parent 5beea33 commit b93ceeb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SimpleViewModel/SimpleViewModel.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1111
<PackageId>SimpleViewModel</PackageId>
12-
<Version>0.9.5.3</Version>
12+
<Version>0.9.5.4</Version>
1313
<Authors>Derek Gooding</Authors>
1414
<Company>Derek Gooding</Company>
1515
<Description>

ViewModelGenerator/ViewModelGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public partial class {className} : BaseViewModel
7777
{
7878
var commandClassName = $"Command_{method.Name}";
7979
var commandFieldName = $"{ToPascal(method.Name)}Command";
80-
viewModelBuilder.AppendLine($" private {commandClassName} _{commandFieldName} {{ get; set; }}");
80+
viewModelBuilder.AppendLine($" private {commandClassName}? _{commandFieldName} {{ get; set; }}");
8181
viewModelBuilder.AppendLine($" public {commandClassName} {commandFieldName} => _{commandFieldName} ??= new(this);");
8282

8383
// Generate command class per method

0 commit comments

Comments
 (0)