diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/TemplateControl.cs')
-rwxr-xr-x | mcs/class/System.Web/System.Web.UI/TemplateControl.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/TemplateControl.cs b/mcs/class/System.Web/System.Web.UI/TemplateControl.cs index 7b1e85f94fb..1014c3792f9 100755 --- a/mcs/class/System.Web/System.Web.UI/TemplateControl.cs +++ b/mcs/class/System.Web/System.Web.UI/TemplateControl.cs @@ -106,6 +106,12 @@ namespace System.Web.UI { if (method == null) continue; + if (method.DeclaringType != type) { + if (!method.IsPublic && !method.IsFamilyOrAssembly && + !method.IsFamilyAndAssembly && !method.IsFamily) + continue; + } + if (method.ReturnType != typeof (void)) continue; |