SortEntriesBeforeSaving Property

DotNetZip

Ionic Zip Library v1.9.1.6 SortEntriesBeforeSaving Property
ReferenceIonic.ZipZipFileSortEntriesBeforeSaving
Whether to sort the ZipEntries before saving the file.
Declaration Syntax
C# Visual Basic Visual C++
public bool SortEntriesBeforeSaving { get; set; }
Public Property SortEntriesBeforeSaving As Boolean
	Get
	Set
public:
property bool SortEntriesBeforeSaving {
	bool get ();
	void set (bool value);
}
Remarks
The default is false. If you have a large number of zip entries, the sort alone can consume significant time.
Examples
CopyC#
using (var zip = new ZipFile())
{
    zip.AddFiles(filesToAdd);
    zip.SortEntriesBeforeSaving = true;
    zip.Save(name);
}
CopyVB.NET
Using zip As New ZipFile
    zip.AddFiles(filesToAdd)
    zip.SortEntriesBeforeSaving = True
    zip.Save(name)
End Using

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)