Exemplo n.º 1
0
 /// <summary>
 /// Determines if a template is accessible via the currently
 /// configured resource loaders.
 /// <br/><br/>
 /// Note that the current implementation will <b>not</b>
 /// change the state of the system in any real way - so this
 /// cannot be used to pre-load the resource cache, as the
 /// previous implementation did as a side-effect.
 /// <br/><br/>
 /// The previous implementation exhibited extreme laziness and
 /// sloth, and the author has been flogged.
 /// </summary>
 /// <param name="templateName"> name of the template to search for
 /// </param>
 /// <returns>true if found, false otherwise
 /// </returns>
 public bool TemplateExists(String templateName)
 {
     return(runtimeInstance.GetLoaderNameForResource(templateName) != null);
 }
Exemplo n.º 2
0
 /// <summary>   Determines if a resource is accessable via the currently
 /// configured resource loaders.
 /// <br><br>
 /// Note that the current implementation will <b>not</b>
 /// change the state of the system in any real way - so this
 /// cannot be used to pre-load the resource cache, as the
 /// previous implementation did as a side-effect.
 /// <br><br>
 /// The previous implementation exhibited extreme lazyness and
 /// sloth, and the author has been flogged.
 ///
 /// </summary>
 /// <param name="resourceName"> name of the resource to search for
 /// </param>
 /// <returns> true if found, false otherwise
 /// </returns>
 /// <since> 1.5
 /// </since>
 public virtual bool ResourceExists(string resourceName)
 {
     return(ri.GetLoaderNameForResource(resourceName) != null);
 }