Browse Source

2003-02-16 Atsushi Enomoto <[email protected]>

	* XmlSerializer.cs : serializing now works for interface member.

svn path=/trunk/mcs/; revision=11612
Atsushi Eno 23 years ago
parent
commit
cc86dade12

+ 4 - 0
mcs/class/System.XML/System.Xml.Serialization/ChangeLog

@@ -1,3 +1,7 @@
+2003-02-16  Atsushi Enomoto <[email protected]>
+
+	* XmlSerializer.cs : serializing now works for interface member.
+
 2003-01-26  Atsushi Enomoto <[email protected]>
 
 	* XmlSerializer.cs : some fix handling xml node object more correct.

+ 3 - 0
mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs

@@ -677,6 +677,9 @@ namespace System.Xml.Serialization {
 				FieldInfo fieldInfo = (member as FieldInfo);
 				PropertyInfo propertyInfo = (member as PropertyInfo);
 
+				if (memberTable [member.Name] != null)
+					continue;
+
 				if (fieldInfo != null) {
 					//If field is readOnly or const, do not serialize it.
 					if (fieldInfo.IsLiteral || fieldInfo.IsInitOnly)