diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/UserControlParser.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI/UserControlParser.cs | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/UserControlParser.cs b/mcs/class/System.Web/System.Web.UI/UserControlParser.cs new file mode 100644 index 00000000000..b454da5c11e --- /dev/null +++ b/mcs/class/System.Web/System.Web.UI/UserControlParser.cs @@ -0,0 +1,49 @@ +// +// System.Web.UI.UserControlParser +// +// Authors: +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2002 Ximian, Inc (http://www.ximian.com) +// +using System; +using System.Web; +using System.Web.Compilation; + +namespace System.Web.UI +{ + public sealed class UserControlParser : TemplateControlParser + { + internal UserControlParser (string inputFile) + { + InputFile = inputFile; + } + + public static Type GetCompiledType (string virtualPath, string inputFile, HttpContext context) + { + UserControlParser ucp = new UserControlParser (inputFile); + Type t = ucp.CompileIntoType (); + return t; + } + + protected override Type CompileIntoType () + { + return UserControlCompiler.CompileUserControlType (this); + } + + protected override Type DefaultBaseType + { + get { + return typeof (Control); + } + } + + protected override string DefaultDirectiveName + { + get { + return "control"; + } + } + } +} + |