Add JsonElement.WriteProperty that takes JsonEncodedText. (dotnet/corefx#38869)
authorAhson Khan <ahkha@microsoft.com>
Wed, 26 Jun 2019 14:32:53 +0000 (07:32 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 14:32:53 +0000 (07:32 -0700)
commit52838374b4ac5f6bdb83325288054964d04bbb83
tree280804e15f38dd9eb46ff887d2cd910e21c9d190
parente0f16ab98af03a41630f7b2f971a1415ccb6d738
Add JsonElement.WriteProperty that takes JsonEncodedText. (dotnet/corefx#38869)

* Add JsonElement.WriteProperty that takes JsonEncodedText.

* Add tests.

* Auto-gen the ref.

Commit migrated from https://github.com/dotnet/corefx/commit/5134166832b430ccf2d05193cda9036d9a55356b
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonElement.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.FormattedNumber.cs
src/libraries/System.Text.Json/tests/JsonDocumentTests.cs
src/libraries/System.Text.Json/tests/JsonElementWriteTests.cs