Author: jluke
Date: 2005-03-15 11:40:24 -0500 (Tue, 15 Mar 2005)
New Revision: 41839

Modified:
   trunk/gtk-sharp/ChangeLog
   trunk/gtk-sharp/glib/Object.cs
Log:
2005-03-15  John Luke  <[EMAIL PROTECTED]>

        * glib/Object.cs: use IsDefined to check for ClassInitializer
        attribute, fixes a warning and is supposedly better for performance



Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog   2005-03-15 16:30:00 UTC (rev 41838)
+++ trunk/gtk-sharp/ChangeLog   2005-03-15 16:40:24 UTC (rev 41839)
@@ -1,3 +1,8 @@
+2005-03-15  John Luke  <[EMAIL PROTECTED]>
+
+       * glib/Object.cs: use IsDefined to check for ClassInitializer
+       attribute, fixes a warning and is supposedly better for performance
+
 2005-03-15  Dan Winship  <[EMAIL PROTECTED]>
 
        Re-fix for yesterday's fix that didn't actually work.

Modified: trunk/gtk-sharp/glib/Object.cs
===================================================================
--- trunk/gtk-sharp/glib/Object.cs      2005-03-15 16:30:00 UTC (rev 41838)
+++ trunk/gtk-sharp/glib/Object.cs      2005-03-15 16:40:24 UTC (rev 41839)
@@ -142,7 +142,7 @@
                        object[] parms = {gtype, t};
                        BindingFlags flags = BindingFlags.Static | 
BindingFlags.NonPublic | BindingFlags.FlattenHierarchy;
                        foreach (MethodInfo minfo in t.GetMethods(flags))
-                               foreach (object attr in 
minfo.GetCustomAttributes (typeof (ClassInitializerAttribute), true))
+                               if (minfo.IsDefined (typeof 
(ClassInitializerAttribute), true))
                                        minfo.Invoke (null, parms);
                }
 

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

Reply via email to