public string ReadFile(string virtualPath, bool actualContent) { if (!_virtualPathProvider.FileExists(virtualPath)) { return(null); } if (actualContent) { var physicalPath = _virtualPathProvider.MapPath(virtualPath); return(File.ReadAllText(physicalPath)); } else { return(_virtualPathProvider.ReadFile(Normalize(virtualPath))); } }