Author: krasnov
Date: 2007-03-14 11:52:09 -0500 (Wed, 14 Mar 2007)
New Revision: 74269

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
Log:
* TemplateControl.jvm.cs: fixed WireupAutomaticEvents, performance optimization

Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-03-14 16:50:11 UTC 
(rev 74268)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-03-14 16:52:09 UTC 
(rev 74269)
@@ -1,3 +1,8 @@
+2007-03-14  Vladimir Krasnov  <[EMAIL PROTECTED]>
+
+       * TemplateControl.jvm.cs: fixed WireupAutomaticEvents, performance
+       optimization
+
 2007-03-13  Marek Habersack  <[EMAIL PROTECTED]>
 
        * TemplateParser.cs: name generated classes the same way MS.NET

Modified: trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs     
2007-03-14 16:50:11 UTC (rev 74268)
+++ trunk/mcs/class/System.Web/System.Web.UI/TemplateControl.jvm.cs     
2007-03-14 16:52:09 UTC (rev 74269)
@@ -38,7 +38,6 @@
 
        public abstract class TemplateControl : Control, INamingContainer
        {
-               static readonly Assembly _System_Web_Assembly = typeof 
(TemplateControl).Assembly;
                static object abortTransaction = new object ();
                static object commitTransaction = new object ();
                static object error = new object ();
@@ -165,7 +164,7 @@
                        foreach (string methodName in methodNames) {
                                MethodInfo method = null;
                                Type type;
-                               for (type = GetType (); type != null && 
type.Assembly != _System_Web_Assembly; type = type.BaseType) {
+                               for (type = GetType (); type != null && type != 
typeof(TemplateControl); type = type.BaseType) {
                                        method = type.GetMethod (methodName, 
bflags);
                                        if (method != null)
                                                break;

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

Reply via email to