コード例 #1
0
ファイル: StreamImage.aspx.cs プロジェクト: hemonnet/hemonnet
 public virtual FileToStream GetFileToStream(string path)
 {
     FileToStream file = null;
     try
     {
         file = new FileToStreamImpl(path); //GetFileToStreamInternal(path);
     }
     catch (FileNotFoundException) { }
     if (file == null)
         file = new FileToStreamImpl(path);
     return file;
 }
コード例 #2
0
ファイル: StreamImage.aspx.cs プロジェクト: pykarun/njupiter
        public virtual IFileToStream GetFileToStream(string path)
        {
            IFileToStream file = null;

            try {
                file = GetFileToStreamInternal(path);
            } catch (FileNotFoundException) { }
            if (file == null)
            {
                file = new FileToStreamImpl(path);
            }
            return(file);
        }