Пример #1
0
 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
        public virtual IFileToStream GetFileToStream(string path)
        {
            IFileToStream file = null;

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