Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/TemplateControl.cs')
-rwxr-xr-xmcs/class/System.Web/System.Web.UI/TemplateControl.cs6
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;