Add JsonDocumentOptions and use that instead of JsonReaderOptions. (dotnet/corefx...
authorAhson Khan <ahkha@microsoft.com>
Wed, 26 Jun 2019 14:29:43 +0000 (07:29 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 14:29:43 +0000 (07:29 -0700)
commite0f16ab98af03a41630f7b2f971a1415ccb6d738
tree0935ab5ea29561d8cc6e8400020ac7f5423c4d54
parentffee4b210001ba4960201388b9d0f572224bc0ac
Add JsonDocumentOptions and use that instead of JsonReaderOptions. (dotnet/corefx#38866)

* Add JsonDocumentOptions and use that instead of JsonReaderOptions.

* Address PR feedback.

* Auto-generate the reference assembly.

* Auto-gen the ref from the source.

* Explicitly mark property getters as readonly.

* Cleanup and fix converter argument name to typeToConvert.

Commit migrated from https://github.com/dotnet/corefx/commit/e4d329737f0ab5c413c98a90ff485f91fd3f5fd0
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/JsonDocument.Parse.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocumentOptions.cs [new file with mode: 0644]
src/libraries/System.Text.Json/src/System/Text/Json/Reader/JsonReaderOptions.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonStringEnumConverter.cs
src/libraries/System.Text.Json/tests/JsonDocumentTests.cs
src/libraries/System.Text.Json/tests/JsonElementWriteTests.cs