コード例 #1
0
ファイル: storage.cs プロジェクト: pmq20/mono_forked
 public static bool TryRetrieve(this IDocStorage storage, string id, out Stream stream)
 {
     stream = null;
     try {
         stream = storage.Retrieve(id);
         return(true);
     } catch {
         return(false);
     }
 }
コード例 #2
0
ファイル: HelpSource.cs プロジェクト: vernon016/mono
 /// <summary>
 ///   Returns a stream from the packaged help source archive
 /// </summary>
 public virtual Stream GetHelpStream(string id)
 {
     return(storage.Retrieve(id));
 }