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