Justdecompile output
----------------------------
protected string GetPath(string basePath, string path, SiteContext context)
{
string virtualFolder = context.VirtualFolder;
if ((virtualFolder.Length <= 0 || virtualFolder == "/") || path.Length == (virtualFolder.Length - 1))
{
path = string.Empty;
}
if (basePath.Length > 0 && basePath != "/")
{
path = FileUtil.MakePath(basePath, path, 47);
}
if (path.Length > 0 && path.get_Chars(0) != 47)
{
path = string.Concat(47, path);
}
return path;
}
Reflector Output:
---------------------
----------------------------
protected string GetPath(string basePath, string path, SiteContext context)
{
string virtualFolder = context.VirtualFolder;
if ((virtualFolder.Length <= 0 || virtualFolder == "/") || path.Length == (virtualFolder.Length - 1))
{
path = string.Empty;
}
if (basePath.Length > 0 && basePath != "/")
{
path = FileUtil.MakePath(basePath, path, 47);
}
if (path.Length > 0 && path.get_Chars(0) != 47)
{
path = string.Concat(47, path);
}
return path;
}
Reflector Output:
---------------------
protected string GetPath(string basePath, string path, SiteContext context)
{
string virtualFolder = context.VirtualFolder;
if ((virtualFolder.Length > 0) && (virtualFolder != "/"))
{
if (path.Length == (virtualFolder.Length - 1))
{
path = string.Empty;
}
else
{
path = path.Substring(virtualFolder.Length);
}
}
if ((basePath.Length > 0) && (basePath != "/"))
{
path = FileUtil.MakePath(basePath, path, '/');
}
if ((path.Length > 0) && (path[0] != '/'))
{
path = '/' + path;
}
return path;
}