Ejemplo n.º 1
0
        public LocalFile(string path, OpenMode mode)
        {
            Mode   = mode;
            Stream = OpenFile(path, mode);
            File   = new StreamFile(Stream, mode);

            ToDispose.Add(File);
            ToDispose.Add(Stream);
        }
Ejemplo n.º 2
0
        public LocalFile(string path, OpenMode mode)
        {
            Path   = path;
            Mode   = mode;
            Stream = new FileStream(Path, FileMode.Open, GetFileAccess(mode));
            File   = new StreamFile(Stream, mode);

            ToDispose.Add(File);
            ToDispose.Add(Stream);
        }