File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ var classType = complex.IsAbstract ? "abstract partial class" : "partial class";
1818var attributeStringBuilder = new StringBuilder();
1919attributeStringBuilder.Append("[JsonObject(MemberSerialization = MemberSerialization.OptIn)]");
2020
21- // We only want to add the derived type converter to the concrete class at the top of the inheritance hierarchy
22- if (! complex.IsAbstract && complex. Derived != null && ( complex.Base == null || complex.Base.IsAbstract) )
21+ // We only want to add the derived type converter to the class at the top of the inheritance hierarchy
22+ if (complex.Derived != null && complex.Base == null)
2323{
2424 attributeStringBuilder.Append(Environment.NewLine);
2525 attributeStringBuilder.Append(" ");
You can’t perform that action at this time.
0 commit comments