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 1ffbf6c commit afcb254
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions XsdLib/GeneratorModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ public void ToProperty(StringBuilder sb, GeneratorSettings settings)
""");
if (!Required)
{
sb.AppendLine(" [XmlIgnore]");
if (settings.JsonAttributes)
{
sb.AppendLine(" [JsonIgnore]");
}
sb.AppendLine($" public bool ShouldSerialize{Name}() => {Name} != null;");
}
}
Expand Down

0 comments on commit afcb254

Please sign in to comment.