Skip to content

Commit

Permalink
Generated properties should use the "new" keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Feb 25, 2022
1 parent 09b1226 commit 10da2b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ protected virtual void WriteProperty(TextWriter writer, TypeModel model, Propert
WriteJsonNetPropertySettings(writer, model, property, settings);

writer.WriteLine(" [ImplementPropertyType(\"" + property.Alias + "\")]");
writer.Write(" public " + valueTypeName + " " + property.ClrName + " => ");
writer.Write(" public new " + valueTypeName + " " + property.ClrName + " => ");

if (useStaticMethod) {

Expand Down

0 comments on commit 10da2b2

Please sign in to comment.