You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AssertXmlMappingException(ex,"SerializationTypes.HideWithNewName","StringField","Member 'HideWithNewName.StringField' hides inherited member 'BaseWithElementsAttributesPropertiesAndLists.StringField', but has different custom attributes.");
1068
1068
1069
+
/* This scenario fails before .Net 10 because the process for xml mapping types incorrectly
1070
+
* fails to account for hidden members. In this case, 'ListField' actually gets serialized as
1071
+
* an 'XmlArray' instead of a series of 'XmlElement', because the hidden base-member is an 'XmlArray'.
1072
+
* Let's just skip this scenario. It's live in .Net 10.
1069
1073
// Funny tricks can be played with XmlArray/Element when it comes to Lists though.
1070
1074
// Stuff kind of doesn't blow up, but hidden members still get left out.
1071
1075
var value5 = new HideArrayWithElement() { ListField = new() { "ONE", "TWO", "THREE" } };
@@ -1088,6 +1092,7 @@ public static void Xml_HiddenMembersChangeMappings()
0 commit comments