Correctly show the '}', ']' within the exception message in Utf8JsonWriter (dotnet...
authorAhson Khan <ahkha@microsoft.com>
Sat, 23 Mar 2019 00:14:57 +0000 (17:14 -0700)
committerStephen Toub <stoub@microsoft.com>
Sat, 23 Mar 2019 00:14:57 +0000 (20:14 -0400)
commit1c9681a00759e4e9c6a67c4c22b37a81b4a71b93
tree5417d91ec2045e9a015f3868cdabed2c67cd4b1d
parent146c83609cd28323cb7e23e8f25165a804381e47
Correctly show the '}', ']' within the exception message in Utf8JsonWriter (dotnet/corefx#36229)

* Correctly show the '{', '[' within the exception message in
Utf8JsonWriter

* Address PR feedback - don't make throwhelper parameters optional.

Commit migrated from https://github.com/dotnet/corefx/commit/d3b66400c6b415416163b865a7856a7e93de3338
src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Helpers.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.Helpers.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.cs