Ejemplo n.º 1
0
 /// <summary>
 ///  A wrapper for <see cref="ZipFile.IsZipFile(string, bool)">ZipFile.IsZipFile(string, bool)</see>
 /// </summary>
 /// <remarks>
 /// We cannot use "overloaded" Method names in COM interop.
 /// So, here, we use a unique name.
 /// </remarks>
 /// <param name="filename">The filename to of the zip file to check.</param>
 /// <returns>true if the file contains a valid zip file.</returns>
 public bool IsZipFileWithExtract(string filename)
 {
     return(ZipFile.IsZipFile(filename, true));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///  A wrapper for <see cref="ZipFile.IsZipFile(string)">ZipFile.IsZipFile(string)</see>
 /// </summary>
 /// <param name="filename">The filename to of the zip file to check.</param>
 /// <returns>true if the file contains a valid zip file.</returns>
 public bool IsZipFile(string filename)
 {
     return(ZipFile.IsZipFile(filename));
 }