| 12345678910111213141516171819202122232425262728 |
- //
- // System.Web.UI.TemplateControlParser
- //
- // Authors:
- // Gonzalo Paniagua Javier ([email protected])
- //
- // (C) 2002 Ximian, Inc (http://www.ximian.com)
- //
- using System;
- using System.IO;
- using System.Web.Compilation;
- namespace System.Web.UI
- {
- public abstract class TemplateControlParser : TemplateParser
- {
- internal object GetCompiledInstance (string virtualPath, string inputFile, HttpContext context)
- {
- InputFile = Path.Combine (MapPath (virtualPath, false), inputFile);
- Type type = CompileIntoType ();
- if (type == null)
- return null;
- return Activator.CreateInstance (type);
- }
- }
- }
|