public static bool TryRetrieve(this IDocStorage storage, string id, out Stream stream) { stream = null; try { stream = storage.Retrieve(id); return(true); } catch { return(false); } }
/// <summary> /// Returns a stream from the packaged help source archive /// </summary> public virtual Stream GetHelpStream(string id) { return(storage.Retrieve(id)); }