Skip to content

Commit 8bfe23a

Browse files
committed
Add remark to Zip/FastZip.cs UseZip64 property
1 parent 22c2cae commit 8bfe23a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Zip/FastZip.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,14 @@ public IEntryFactory EntryFactory
277277
/// <summary>
278278
/// Gets or sets the setting for <see cref="UseZip64">Zip64 handling.</see>
279279
/// </summary>
280+
/// <remarks>
281+
/// The default value is dynamic which is not backwards compatible with old
282+
/// programs and can cause problems with XP's built in compression which cant
283+
/// read Zip64 archives. However it does avoid the situation were a large file
284+
/// is added and cannot be completed correctly.
285+
/// NOTE: Setting the size for entries before they are added is the best solution!
286+
/// By default the EntryFactory used by FastZip will set fhe file size.
287+
/// </remarks>
280288
public UseZip64 UseZip64
281289
{
282290
get { return useZip64_; }
@@ -673,14 +681,7 @@ static bool NameIsValid(string name)
673681
bool createEmptyDirectories_;
674682
FastZipEvents events_;
675683
IEntryFactory entryFactory_ = new ZipEntryFactory();
676-
677684
INameTransform extractNameTransform_;
678-
679-
// Default is dynamic which is not backwards compatible and can cause problems
680-
// with XP's built in compression which cant read Zip64 archives.
681-
// However it does avoid the situation were a large file is added and cannot be completed correctly.
682-
// NOTE: Setting the size for entries before they are added is the best solution!
683-
// By default the EntryFactory used by FastZip will set fhe file size.
684685
UseZip64 useZip64_=UseZip64.Dynamic;
685686

686687
#if !NETCF_1_0

0 commit comments

Comments
 (0)