diff --git a/src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs b/src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs
index 69bb9f6a9..951cc6e20 100644
--- a/src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs
+++ b/src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs
@@ -387,6 +387,23 @@ private bool HaveKeys
#region Constructors
+ ///
+ /// Opens a Zip file with the given name for reading.
+ ///
+ /// The name of the file to open.
+ /// The argument supplied is null.
+ ///
+ /// An i/o error occurs
+ ///
+ ///
+ /// The file doesn't contain a valid zip archive.
+ ///
+ public ZipFile(string name) :
+ this(name, null)
+ {
+
+ }
+
///
/// Opens a Zip file with the given name for reading.
///
@@ -399,7 +416,7 @@ private bool HaveKeys
///
/// The file doesn't contain a valid zip archive.
///
- public ZipFile(string name, StringCodec stringCodec = null)
+ public ZipFile(string name, StringCodec stringCodec)
{
name_ = name ?? throw new ArgumentNullException(nameof(name));
@@ -500,6 +517,29 @@ public ZipFile(Stream stream) :
}
+ ///
+ /// Opens a Zip file reading the given .
+ ///
+ /// The to read archive data from.
+ /// true to leave the stream open when the ZipFile is disposed, false to dispose of it
+ ///
+ /// An i/o error occurs
+ ///
+ ///
+ /// The stream doesn't contain a valid zip archive.
+ ///
+ ///
+ /// The stream doesnt support seeking.
+ ///
+ ///
+ /// The stream argument is null.
+ ///
+ public ZipFile(Stream stream, bool leaveOpen) :
+ this(stream, leaveOpen, null)
+ {
+
+ }
+
///
/// Opens a Zip file reading the given .
///
@@ -518,7 +558,7 @@ public ZipFile(Stream stream) :
///
/// The stream argument is null.
///
- public ZipFile(Stream stream, bool leaveOpen, StringCodec stringCodec = null)
+ public ZipFile(Stream stream, bool leaveOpen, StringCodec stringCodec)
{
if (stream == null)
{