Update JsonSerializer and JsonElement APIs - drop "As" and parameter re-ordering...
authorAhson Khan <ahkha@microsoft.com>
Wed, 5 Jun 2019 21:49:59 +0000 (14:49 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Jun 2019 21:49:59 +0000 (14:49 -0700)
commit3c30c4883ce98f7d908ca8ccaa0e2ddd10690e13
tree2649895b22c3c677e929be8723c2fba4a51da274
parent5da855c1992f7cdd72503603ace16ebeaeff3513
Update JsonSerializer and JsonElement APIs - drop "As" and parameter re-ordering (dotnet/corefx#38270)

* Update JsonSerializer and JsonElement APIs

* Fix the test since the call became ambiguous and overload resolution
picked the different overload.

Commit migrated from https://github.com/dotnet/corefx/commit/5c2ba765f55462dcc5e00179a34398fc70bf37b7
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonElement.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/JsonValueConverterJsonElement.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.HandleDictionary.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.Stream.cs
src/libraries/System.Text.Json/tests/JsonDocumentTests.cs
src/libraries/System.Text.Json/tests/JsonElementWriteTests.cs
src/libraries/System.Text.Json/tests/Serialization/Stream.WriteTests.cs