ICSharpCode.SharpZipLib.Zip.ZipFile.ZipFile C# (CSharp) Метод

ZipFile() публичный Метод

Opens a Zip file with the given name for reading.
The argument supplied is null. /// An i/o error occurs /// /// The file doesn't contain a valid zip archive. ///
public ZipFile ( string name ) : System
name string The name of the file to open.
Результат System
        public ZipFile(string name) {
            if (name==null) {
                throw new ArgumentNullException("name");
            }

            name_=name;

            baseStream_=File.Open(name, FileMode.Open, FileAccess.Read, FileShare.Read);
            isStreamOwner=true;

            try {
                ReadEntries();
            } catch {
                DisposeInternal(true);
                throw;
            }
        }

Same methods

ZipFile::ZipFile ( ) : System
ZipFile::ZipFile ( FileStream file ) : System
ZipFile::ZipFile ( Stream stream ) : System