/// <summary> /// Gets a static resource as a stream. To do so it calls the <code>GetResourceAsStream</code> /// function of all installed resolvers. See <code>IResourceResolver.GetResourceAsStream</code> /// </summary> /// <param name="sName">the name of the resource</param> /// <returns>a stream for reading from the resource</returns> public Stream GetResourceAsStream(string sName) { foreach (ResolverThreadPool pool in resolvers) { IResourceResolver res = pool.Resolver; Stream strm = res.GetResourceAsStream(sName); if (strm != null) { return(strm); } } return(null); }