Skip to content

Commit

Permalink
Reset the PropertyState dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
KenitoInc committed Nov 22, 2021
1 parent afda687 commit f97e47c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ internal void WriteInstanceAnnotation(
expectedType,
treatLikeOpenProperty,
this.valueSerializer.JsonLightOutputContext.DuplicatePropertyNameChecker);

// Reset the PropertyState Dictionary in the DuplicatePropertyNameChecker
this.valueSerializer.JsonLightOutputContext.DuplicatePropertyNameChecker.Reset();

return;
}

Expand Down

0 comments on commit f97e47c

Please sign in to comment.