Fix DataContractSerializer with duplicate qname
authorDave Ferguson <davecferguson@gmail.com>
Thu, 3 May 2012 03:28:44 +0000 (23:28 -0400)
committerDave Ferguson <davecferguson@gmail.com>
Thu, 3 May 2012 05:56:17 +0000 (01:56 -0400)
commit3b6cb0a486f5e550a2e1ca904f02d3ff9ef90bc7
tree9f8f863ffcf953d97151bc0ee98bcb397804ad58
parent91a8d3cae2534254ed5cdb4690b9d8af98d6a656
Fix DataContractSerializer with duplicate qname

- Fix bug 4794 by searching the SerializationMap with both type and
  qname in all but several cases (see bug report comments)

- Add separate list for known types to mimic behavior of the .NET
  runtime

- Make previous test fixtures public so that the unit tests will be run

- Remove unused private method

- Add unit test for bug 4794
mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/DataContractSerializer.cs
mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/KnownTypeCollection.cs
mcs/class/System.Runtime.Serialization/System.Runtime.Serialization_test.dll.sources
mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/Bug2843Test.cs
mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/DataContractSerializerTest_DuplicateQName.cs [new file with mode: 0644]
mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/DataContractSerializerTest_NullableWithDictionary.cs