Author: lluis
Date: 2006-07-24 11:28:57 -0400 (Mon, 24 Jul 2006)
New Revision: 62925

Modified:
   trunk/stetic/ChangeLog
   trunk/stetic/libstetic/EnumDescriptor.cs
Log:
2006-07-24  Lluis Sanchez Gual  <[EMAIL PROTECTED]> 

        * libstetic/EnumDescriptor.cs: Don't throw an exception if the
          CLR enum has more members than the enum declared in objects.xml.
          A new backward compatible version of a library may introduce new
          members which Stetic is unaware of.



Modified: trunk/stetic/ChangeLog
===================================================================
--- trunk/stetic/ChangeLog      2006-07-24 15:15:38 UTC (rev 62924)
+++ trunk/stetic/ChangeLog      2006-07-24 15:28:57 UTC (rev 62925)
@@ -1,3 +1,10 @@
+2006-07-24  Lluis Sanchez Gual  <[EMAIL PROTECTED]> 
+
+       * libstetic/EnumDescriptor.cs: Don't throw an exception if the
+         CLR enum has more members than the enum declared in objects.xml.
+         A new backward compatible version of a library may introduce new
+         members which Stetic is unaware of.
+
 2006-07-24  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * libstetic/wrapper/Table.cs: Don't try to automatically set

Modified: trunk/stetic/libstetic/EnumDescriptor.cs
===================================================================
--- trunk/stetic/libstetic/EnumDescriptor.cs    2006-07-24 15:15:38 UTC (rev 
62924)
+++ trunk/stetic/libstetic/EnumDescriptor.cs    2006-07-24 15:28:57 UTC (rev 
62925)
@@ -50,9 +50,6 @@
                                                               
valueElem.GetAttribute ("label"),
                                                               
valueElem.GetAttribute ("description"));
                        }
-
-                       if (values.Count != evalues.Count)
-                               throw new ArgumentException ("<enum> node for " 
+ enumType.FullName + " is missing some values");
                }
                
                public string Name {

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

Reply via email to