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