//
using System;
using System.Collections;
+using System.Collections.Generic;
using System.IO;
using System.Web;
using System.Web.Compilation;
internal class UserControlParser : TemplateControlParser
{
string masterPage;
-
-
+#if NET_4_0
+ string providerName;
+#endif
internal UserControlParser (VirtualPath virtualPath, string inputFile, HttpContext context)
: this (virtualPath, inputFile, context, null)
{
}
- internal UserControlParser (VirtualPath virtualPath, string inputFile, ArrayList deps, HttpContext context)
+ internal UserControlParser (VirtualPath virtualPath, string inputFile, List <string> deps, HttpContext context)
: this (virtualPath, inputFile, context, null)
{
this.Dependencies = deps;
return ucp.CompileIntoType ();
}
- internal static Type GetCompiledType (string virtualPath, string inputFile, ArrayList deps, HttpContext context)
+ internal static Type GetCompiledType (string virtualPath, string inputFile, List <string> deps, HttpContext context)
{
UserControlParser ucp = new UserControlParser (new VirtualPath (virtualPath), inputFile, deps, context);
return ucp.CompileIntoType ();
}
- protected override Type CompileIntoType ()
+ internal override Type CompileIntoType ()
{
AspGenerator generator = new AspGenerator (this);
return generator.GetCompiledType ();
}
- internal override void ProcessMainAttributes (Hashtable atts)
+ internal override void ProcessMainAttributes (IDictionary atts)
{
masterPage = GetString (atts, "MasterPageFile", null);
if (masterPage != null)
base.ProcessMainAttributes (atts);
}
+#if NET_4_0
+ internal override void ProcessOutputCacheAttributes (IDictionary atts)
+ {
+ providerName = GetString (atts, "ProviderName", null);
+ base.ProcessOutputCacheAttributes (atts);
+ }
+ internal override Type DefaultBaseType {
+ get {
+ Type ret = PageParser.DefaultUserControlBaseType;
+ if (ret == null)
+ return base.DefaultBaseType;
+
+ return ret;
+ }
+ }
+#endif
internal override string DefaultBaseTypeName {
get { return PagesConfig.UserControlBaseType; }
}
internal string MasterPageFile {
get { return masterPage; }
}
+#if NET_4_0
+ internal string ProviderName {
+ get { return providerName; }
+ }
+#endif
}
}