[]
Tests whether a file is a valid zip file.
public static bool IsZipFile(string fileName)
| Type | Name | Description |
|---|---|---|
| string | fileName | Name of the file to test. |
| Type | Description |
|---|---|
| bool | True if the file exists and is a valid zip file, false otherwise. |
Tests whether a stream contains a valid zip file.
public static bool IsZipFile(Stream stream)
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to test. |
| Type | Description |
|---|---|
| bool | True if |