Skip to content

Commit

Permalink
Update GeneratorModels.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarne authored Apr 29, 2024
1 parent 5cbada6 commit 1ffbf6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XsdLib/GeneratorModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void ToProperty(StringBuilder sb, GeneratorSettings settings)
{
sb.AppendLine(" [JsonIgnore]");
}
sb.AppendLine($" public bool {Name}Specified => {Name} != null;");
sb.AppendLine($" public bool ShouldSerialize{Name}() => {Name} != null;");
}
}

Expand Down

0 comments on commit 1ffbf6c

Please sign in to comment.