src/Foundation/Net/Gimela.Net.Http/Resources/ResourceProvider.cs
/// <summary>
/// Check if a resource exists.
/// </summary>
/// <param name="uriPath">Uri to check</param>
/// <returns><c>true</c> if found; otherwise <c>false</c>.</returns>
/// <example>
/// <code>
/// if (manager.Exists("/views/user/view.haml"))
///   return true
/// </code>
/// </example>
Check if a resource exists.
Check if a resource exists .
public bool Exists(string uriPath)
    {
      foreach (IResourceLoader provider in _providers)
      {
        if (provider.Exists(uriPath))
          return true;
      }
      return false;
    }
public bool Exists ( string uriPath ) { foreach ( IResourceLoader provider in _providers ) { if ( provider . Exists ( uriPath ) ) return true ; } return false ; }
Check if a resource exists.
Check if a resource exists .
None
uriPath
string
Uri to check
Uri to check
example
if (manager.Exists("/views/user/view.haml"))
return true
if ( manager . Exists ( " / views / user / view . haml " )) return true