Author: lluis
Date: 2005-04-12 12:37:15 -0400 (Tue, 12 Apr 2005)
New Revision: 42842

Modified:
   trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs
Log:
2005-04-12  Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * XmlSchemaParticle.cs: Set MaxOccurs to unbounded when set to
        decimal.MaxValue.



Modified: trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog      2005-04-12 
16:34:24 UTC (rev 42841)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog      2005-04-12 
16:37:15 UTC (rev 42842)
@@ -1,3 +1,8 @@
+2005-04-12  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * XmlSchemaParticle.cs: Set MaxOccurs to unbounded when set to
+       decimal.MaxValue.
+
 2005-03-22  Atsushi Enomoto <[EMAIL PROTECTED]>
 
        * XmlSchemaChoice.cs : commented out warned code.

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs   
2005-04-12 16:34:24 UTC (rev 42841)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs   
2005-04-12 16:37:15 UTC (rev 42842)
@@ -133,8 +133,11 @@
                {
                        get{ return  maxOccurs; } 
                        set
-                       {
-                               MaxOccursString = value.ToString 
(CultureInfo.InvariantCulture);
+                       {
+                               if (value == decimal.MaxValue)
+                                       MaxOccursString = "unbounded";
+                               else
+                                       MaxOccursString = value.ToString 
(CultureInfo.InvariantCulture);
                        }
                }
 

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

Reply via email to