mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Web.Compilation/AspElements.cs: * System.Web.Compilation/AspParser.cs: * System.Web.Compilation/AspTokenizer.cs: * System.Web.Compilation/ChangeLog: * System.Web.Compilation/PageCompiler.cs: * System.Web.Compilation/TemplateFactory.cs: * System.Web.UI/ApplicationFileParser.cs: * System.Web.UI/BaseParser.cs: * System.Web.UI/PageParser.cs: * System.Web.UI/TemplateControl.cs: * System.Web.UI/TemplateControlParser.cs: * System.Web.UI/TemplateParser.cs: first steps to move xsp into System.Web. svn path=/trunk/mcs/; revision=6668
74 lines
1.2 KiB
C#
Executable File
74 lines
1.2 KiB
C#
Executable File
//
|
|
// System.Web.UI.BaseParser.cs
|
|
//
|
|
// Authors:
|
|
// Duncan Mak ([email protected])
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc. (http://www.ximian.com)
|
|
//
|
|
using System.IO;
|
|
using System.Web;
|
|
|
|
namespace System.Web.UI
|
|
{
|
|
public class BaseParser
|
|
{
|
|
private HttpContext context;
|
|
private string baseDir;
|
|
private string baseVDir;
|
|
private string vPath;
|
|
|
|
internal string MapPath (string path)
|
|
{
|
|
return MapPath (path, true);
|
|
}
|
|
|
|
internal string MapPath (string path, bool allowCrossAppMapping)
|
|
{
|
|
return context.Request.MapPath (path, baseVDir, allowCrossAppMapping);
|
|
}
|
|
|
|
internal string PhysicalPath (string path)
|
|
{
|
|
if (Path.DirectorySeparatorChar != '/')
|
|
path = path.Replace ('/', '\\');
|
|
|
|
return Path.GetFullPath (Path.Combine (baseVDir, path));
|
|
}
|
|
|
|
internal HttpContext Context
|
|
{
|
|
get {
|
|
return context;
|
|
}
|
|
}
|
|
|
|
internal string BaseDir
|
|
{
|
|
get {
|
|
if (baseDir == null)
|
|
baseDir = MapPath (baseVDir, false);
|
|
|
|
return baseDir;
|
|
}
|
|
}
|
|
|
|
internal string BaseVirtualDir
|
|
{
|
|
get {
|
|
return baseVDir;
|
|
}
|
|
}
|
|
|
|
internal string CurrentVirtualPath
|
|
{
|
|
get {
|
|
return vPath;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|