Author: lluis
Date: 2005-04-26 05:20:34 -0400 (Tue, 26 Apr 2005)
New Revision: 43584

Modified:
   trunk/mcs/class/System.XML/System.Xml.Serialization/ChangeLog
   trunk/mcs/class/System.XML/System.Xml.Serialization/SoapReflectionImporter.cs
   trunk/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs
Log:
2005-04-26  Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
        properties which are read only. Fixes bug #74723.



Modified: trunk/mcs/class/System.XML/System.Xml.Serialization/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Serialization/ChangeLog       
2005-04-26 08:45:03 UTC (rev 43583)
+++ trunk/mcs/class/System.XML/System.Xml.Serialization/ChangeLog       
2005-04-26 09:20:34 UTC (rev 43584)
@@ -1,3 +1,8 @@
+2005-04-26  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
+       properties which are read only. Fixes bug #74723.
+
 2005-04-14  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * XmlReflectionImporter.cs:

Modified: 
trunk/mcs/class/System.XML/System.Xml.Serialization/SoapReflectionImporter.cs
===================================================================
--- 
trunk/mcs/class/System.XML/System.Xml.Serialization/SoapReflectionImporter.cs   
    2005-04-26 08:45:03 UTC (rev 43583)
+++ 
trunk/mcs/class/System.XML/System.Xml.Serialization/SoapReflectionImporter.cs   
    2005-04-26 09:20:34 UTC (rev 43584)
@@ -365,7 +365,7 @@
                        foreach (PropertyInfo prop in properties)
                        {
                                if (!prop.CanRead) continue;
-                               if (!prop.CanWrite && 
TypeTranslator.GetTypeData (prop.PropertyType).SchemaType != SchemaTypes.Array)
+                               if (!prop.CanWrite && 
(TypeTranslator.GetTypeData (prop.PropertyType).SchemaType != SchemaTypes.Array 
|| prop.PropertyType.IsArray))
                                        continue;
                                        
                                SoapAttributes atts = attributeOverrides[type, 
prop.Name];

Modified: 
trunk/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs
===================================================================
--- 
trunk/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs    
    2005-04-26 08:45:03 UTC (rev 43583)
+++ 
trunk/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs    
    2005-04-26 09:20:34 UTC (rev 43584)
@@ -661,7 +661,7 @@
                                                XmlAttributes atts = 
attributeOverrides[type, prop.Name];
                                                if (atts == null) atts = new 
XmlAttributes (prop);
                                                if (atts.XmlIgnore) continue;
-                                               if (!prop.CanWrite && 
TypeTranslator.GetTypeData (prop.PropertyType).SchemaType != SchemaTypes.Array) 
continue;
+                                               if (!prop.CanWrite && 
(TypeTranslator.GetTypeData (prop.PropertyType).SchemaType != SchemaTypes.Array 
|| prop.PropertyType.IsArray)) continue;
                                                XmlReflectionMember member = 
new XmlReflectionMember(prop.Name, prop.PropertyType, atts);
                                                member.DeclaringType = 
prop.DeclaringType;
                                                members.Add(member);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to