Beispiel #1
0
 public bool Exists(string virtualPath)
 {
     if (_precompiled?.TryLookupCompiledType(virtualPath) != null)
     {
         return(true);
     }
     else if (_runtime?.FileExists(virtualPath) == true)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool Exists(string virtualPath) =>
 _viewEngine.FileExists(controllerContext: _controllerContext, virtualPath: virtualPath);