2007-09-05 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.UI / RootBuilder.cs
index 67f728c416182cb37d8b4421d8566958c6dd4780..220df77f5f1f2d2e87be40bc6c818d267a6dc01a 100644 (file)
@@ -173,6 +173,10 @@ namespace System.Web.UI {
 
                internal AspComponentFoundry Foundry {
                        get { return foundry; }
+                       set {
+                               if (value is AspComponentFoundry)
+                                       foundry = value;
+                       }
                }
 #if NET_2_0
                // FIXME: it's empty (but not null) when using the new default ctor