Zephyr.Web.Mvc.ZephyrViewEngineVirtualPathProvider.PathExists C# (CSharp) Method

PathExists() private method

Check if a path exists in the virtual file system.
private PathExists ( string path ) : bool
path string The path.
return bool
        private bool PathExists(string path)
        {
            if (path.Contains("__ZEPHYR_VIEW") && !path.Contains(".."))
            {
                string resourceFileName = Path.GetFileName(path);
                Assembly assembly = typeof(ZephyrViewEngine).Assembly;
                return assembly.GetManifestResourceStream("Zephyr.Web.Mvc.Html.DisplayTemplates." + resourceFileName) != null;
            }
            return false;
        }