Beispiel #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);
        }
Beispiel #2
0
        public LocalFile(string path, OpenMode mode)
        {
            Path   = path;
            Mode   = mode;
            Stream = new FileStream(Path, FileMode.Open, GetFileAccess(mode), GetFileShare(mode));
            File   = new StreamFile(Stream, mode);

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