Skip to content

Commit

Permalink
Update ZipArchiveMode.Create doc comments
Browse files Browse the repository at this point in the history
For context, see dotnet#49149. The aim is to reduce confusion around the fact that Create mode supports append (unlike `FileMode.Create`).
  • Loading branch information
madelson authored Jul 21, 2022
1 parent 778137b commit 808b5e1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ public enum ZipArchiveMode
/// </summary>
Read,
/// <summary>
/// Only supports the creation of new archives.
/// Only writing to newly created entries in the archive is permitted.
/// Each entry in the archive can only be opened for writing once.
/// If only one entry is written to at a time, data will be written to the underlying stream or file as soon as it is available.
/// Only supports appending new entries to a new or existing archive. Only writing to these newly-created entries is permitted.
/// Each such entry can only be opened for writing once, and only one entry may be open at a time.
/// Data written to entries will be directly written through to the underlying stream or file.
/// The underlying stream must be writable, but need not be seekable.
/// </summary>
Create,
Expand Down

0 comments on commit 808b5e1

Please sign in to comment.