Files
mono/mcs/class/System.Web/System.Web.UI/UserControlParser.cs
T
Andreas N 137c68e961 2003-07-27 Andreas Nahr <[email protected]>
* ApplicationFileParser.cs: Fixed signature
	* DesignTimeParseData.cs: Added missing properties, implemented
	* Page.cs: Added attributes
	* PageParser.cs:
	* TemplateControlParser.cs:
	* TemplateParser.cs:
	* UserControlParser.cs: Fixed signature

svn path=/trunk/mcs/; revision=16745
2003-07-27 13:48:44 +00:00

53 lines
1.1 KiB
C#

//
// System.Web.UI.UserControlParser
//
// Authors:
// Gonzalo Paniagua Javier ([email protected])
//
// (C) 2002,2003 Ximian, Inc (http://www.ximian.com)
//
using System;
using System.IO;
using System.Web;
using System.Web.Compilation;
using System.Web.Util;
namespace System.Web.UI
{
internal sealed class UserControlParser : TemplateControlParser
{
internal UserControlParser (string virtualPath, 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 (virtualPath, inputFile, context);
return ucp.CompileIntoType ();
}
protected override Type CompileIntoType ()
{
AspGenerator generator = new AspGenerator (this);
return generator.GetCompiledType ();
}
internal override Type DefaultBaseType
{
get {
return typeof (UserControl);
}
}
internal override string DefaultDirectiveName
{
get {
return "control";
}
}
}
}