[System.Runtime.Serialization] Work around `specified cast is not valid` error (...
commit83558de96b3ae4907de5652fbac0e410e27c5a59
authormonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 24 Apr 2020 08:56:03 +0000 (24 04:56 -0400)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 08:56:03 +0000 (24 10:56 +0200)
tree78b2cd53784002349e1fd10f27b7426e8a19fdb5
parent051408e0befb4f8da7c3072702e24ebe7bbbcf9d
[System.Runtime.Serialization] Work around `specified cast is not valid` error (#19640)

Backport of #19620.
mcs/class/System.Runtime.Serialization/ReferenceSources/JsonFormatWriterGenerator_static.cs