| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // System.Web.UI.UserControlParser
- //
- // Authors:
- // Gonzalo Paniagua Javier ([email protected])
- //
- // (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, HttpContext context)
- {
- Context = context;
- InputFile = context.Request.MapPath (inputFile);
- }
-
- public static Type GetCompiledType (string virtualPath, string inputFile, HttpContext context)
- {
- UserControlParser ucp = new UserControlParser (inputFile, context);
- Type t = ucp.CompileIntoType ();
- return t;
- }
- protected override Type CompileIntoType ()
- {
- return UserControlCompiler.CompileUserControlType (this);
- }
- protected override Type DefaultBaseType
- {
- get {
- return typeof (UserControl);
- }
- }
- protected override string DefaultDirectiveName
- {
- get {
- return "control";
- }
- }
- }
- }
|