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; }
public virtual IFileToStream GetFileToStream(string path) { IFileToStream file = null; try { file = GetFileToStreamInternal(path); } catch (FileNotFoundException) { } if (file == null) { file = new FileToStreamImpl(path); } return(file); }