Author: mhabersack
Date: 2007-05-04 08:51:41 -0400 (Fri, 04 May 2007)
New Revision: 76676

Modified:
   trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
Log:
forgotten ifdefs

Modified: 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs    
    2007-05-04 12:18:58 UTC (rev 76675)
+++ 
trunk/mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs    
    2007-05-04 12:51:41 UTC (rev 76676)
@@ -1449,7 +1449,9 @@
                        prop.Name = "TemplateSourceDirectory";
                        prop.Attributes = MemberAttributes.Public | 
MemberAttributes.Override;
 
+#if NET_2_0
                        if (!(parser is MasterPageParser)) {
+#endif
                                // if ((this.Parent != null))
                                //   return this.Parent.TemplateSourceDirectory;
                                CodeFieldReferenceExpression parentField = new 
CodeFieldReferenceExpression ();
@@ -1468,8 +1470,10 @@
                                        parentRet);
                        
                                prop.GetStatements.Add (condStatement);
+#if NET_2_0
                        }
-                       
+#endif
+
                        string tsd, bvd = parser.BaseVirtualDir;
                        int len = bvd.Length;
                        if (len >= 2 && bvd [0] == '~') {

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

Reply via email to