diff options
author | Marek Safar <marek.safar@gmail.com> | 2018-07-12 11:15:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-12 11:15:07 +0300 |
commit | 262c5f40cb6b6fa70d51c7744a1b5a9d1023c77a (patch) | |
tree | 24c0002ed3541bfe140d8a81b1858cf21f81c8cf /mcs/class/System.XML | |
parent | 493153ff0261786caef852a503d1b186ebf82b0d (diff) |
[corlib] Default to fast Span<T> (#9204)
Part of #7249
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.Serialization/ComplexDataStructure.cs | 3 | ||||
-rw-r--r-- | mcs/class/System.XML/Test/XmlFiles/literal-data.xml | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.Serialization/ComplexDataStructure.cs b/mcs/class/System.XML/Test/System.Xml.Serialization/ComplexDataStructure.cs index a908eaf997f..e903d3b2f08 100644 --- a/mcs/class/System.XML/Test/System.Xml.Serialization/ComplexDataStructure.cs +++ b/mcs/class/System.XML/Test/System.Xml.Serialization/ComplexDataStructure.cs @@ -15,6 +15,7 @@ using System.Xml.Serialization; using System.Collections; using System.ComponentModel; using NUnit.Framework; +using System.Linq; namespace MonoTests.System.XmlSerialization { @@ -721,7 +722,7 @@ namespace MonoTests.System.XmlSerialization public void WriteXml (XmlWriter writer) { writer.WriteStartElement ("data"); - foreach (DictionaryEntry entry in data) + foreach (DictionaryEntry entry in data.Cast<DictionaryEntry> ().OrderBy (l => l.Key)) { writer.WriteElementString ((string)entry.Key, (string)entry.Value); } diff --git a/mcs/class/System.XML/Test/XmlFiles/literal-data.xml b/mcs/class/System.XML/Test/XmlFiles/literal-data.xml index 7900290505f..c3a9b4c4af3 100644 --- a/mcs/class/System.XML/Test/XmlFiles/literal-data.xml +++ b/mcs/class/System.XML/Test/XmlFiles/literal-data.xml @@ -248,9 +248,9 @@ <anyType xsi:type="xsd:string">strings</anyType> </ttList>aa<xmltext>33</xmltext>bb<xmltext>776</xmltext><special> <data> - <two>2</two> <one>1</one> <three>3</three> + <two>2</two> </data> </special><dummyStringArray xmlns="mm"> <ArrayOfString xsi:nil="true" /> |