[S.R.Serialization] do not update memberType when not expected.
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 13 Apr 2015 20:20:41 +0000 (05:20 +0900)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 24 Apr 2015 05:36:54 +0000 (14:36 +0900)
commit98c812ee243aa21ef0fc3ce24c009808916e9c9c
tree01e1f4f77e998b0c10434cdfe1ddeed7f9f12645
parent99a7c698f0742470ed76158a57a812c58fcfa877
[S.R.Serialization] do not update memberType when not expected.

The removed code caused unexpected omission of xsi:type by giving "false"
Type information that is from the actual value (when the expected type is
different, xsi:type should be written).
mcs/class/System.Runtime.Serialization/ReferenceSources/XmlFormatWriterGenerator_static.cs