Rename JsonValueType to JsonValueKind and JsonElement.Type to JsonElement.ValueKind...
authorAhson Khan <ahkha@microsoft.com>
Wed, 26 Jun 2019 18:58:52 +0000 (11:58 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 18:58:52 +0000 (11:58 -0700)
commit5b4f3b05585df7735dc3bdc28d27f18811c3e18f
treef559a9280f1de63852eced9dc6bd79aefdc7684c
parent59c5617312875257450be177a54d435d4e229c75
Rename JsonValueType to JsonValueKind and JsonElement.Type to JsonElement.ValueKind. (dotnet/corefx#38943)

* Add JsonDocument.Write, JsonProperty.Write, and rename JsonValueTupe to
JsonValueKind.

* Add JsonDocument.Write API tests.

* Don't use GetPropertyRawBytes and add JsonProperty.Write API tests.

* Make GetPropertyRawValue private again.

* Remove the new Write APIs on JsonDocument, JsonProperty.

Commit migrated from https://github.com/dotnet/corefx/commit/f08256cbba2b249cc1e5ca67cf4a1c074adf035b
18 files changed:
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/System.Text.Json.csproj
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonElement.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonProperty.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonValueKind.cs [moved from src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonValueType.cs with 97% similarity]
src/libraries/System.Text.Json/src/System/Text/Json/Reader/JsonReaderHelper.cs
src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.cs
src/libraries/System.Text.Json/tests/JsonDocumentTests.cs
src/libraries/System.Text.Json/tests/JsonElementCloneTests.cs
src/libraries/System.Text.Json/tests/Serialization/DictionaryTests.cs
src/libraries/System.Text.Json/tests/Serialization/ExtensionDataTests.cs
src/libraries/System.Text.Json/tests/Serialization/JsonElementTests.cs
src/libraries/System.Text.Json/tests/Serialization/Object.ReadTests.cs
src/libraries/System.Text.Json/tests/Serialization/PolymorphicTests.cs
src/libraries/System.Text.Json/tests/Serialization/SpanTests.cs
src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClassWithObjectArrays.cs
src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClassWithSimpleObject.cs
src/libraries/System.Text.Json/tests/TestClasses.ClassWithComplexObjects.cs