50 instantiations of ZipArchive
aspire (2)
src\Shared\Export\ExportArchive.cs (2)
57using var archive = new ZipArchive(fileStream, ZipArchiveMode.Create, leaveOpen: false); 67using var archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true);
Aspire.Dashboard (3)
Model\TelemetryImportService.cs (1)
95using var archive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: true);
src\Shared\Export\ExportArchive.cs (2)
57using var archive = new ZipArchive(fileStream, ZipArchiveMode.Create, leaveOpen: false); 67using var archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true);
Aspire.Dashboard.Tests (6)
Model\TelemetryExportServiceTests.cs (4)
647using var archive = new ZipArchive(memoryStream, ZipArchiveMode.Read); 718using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 776using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 829using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read);
Model\TelemetryImportServiceTests.cs (2)
128using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Create, leaveOpen: true)) 170using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Create, leaveOpen: true))
ILCompiler.ReadyToRun (1)
IBC\MIbcProfileParser.cs (1)
103using (var zipFile = new ZipArchive(fsMibcFile, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null))
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (1)
103using (var zipFile = new ZipArchive(fsMibcFile, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null))
Microsoft.Arcade.Common (3)
NupkgInfoFactory.cs (1)
32ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
ZipArchiveManager.cs (2)
33using ZipArchive zip = new(fs, archiveExists ? ZipArchiveMode.Update : ZipArchiveMode.Create, false); 50using ZipArchive archive = new(archiveStream, ZipArchiveMode.Update);
Microsoft.Build (2)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
409using var zipArchive = new ZipArchive(embeddedStream, ZipArchiveMode.Read);
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
80_zipArchive = new ZipArchive(_fileStream, ZipArchiveMode.Create);
Microsoft.Build.Tasks.Core (1)
Unzip.cs (1)
136using (ZipArchive zipArchive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: false))
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
184using ZipArchive zipFile = new(stream);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
99using (var archive = new ZipArchive(File.Open(vsixPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
219using (var archive = new ZipArchive(File.Open(tempPackagePath, FileMode.Open, FileAccess.ReadWrite), ZipArchiveMode.Update))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
152using (var projectAssetArchive = new ZipArchive(
Microsoft.ML.Core (2)
Data\Repository.cs (2)
310_archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true); 466_archive = new ZipArchive(stream, ZipArchiveMode.Read, true);
Microsoft.ML.Ensemble (2)
EntryPoints\CreateEnsemble.cs (2)
333var zip = new ZipArchive(ms); 381var zip = new ZipArchive(ms);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1058using (var zip = new ZipArchive(strm, ZipArchiveMode.Read))
Microsoft.TemplateEngine.Edge (2)
Mount\Archive\ZipFileMountPointFactory.cs (2)
43archive = new ZipArchive(environmentSettings.Host.FileSystem.OpenRead(uri.LocalPath), ZipArchiveMode.Read, false); 63archive = new ZipArchive(file.OpenRead(), ZipArchiveMode.Read, false);
NuGet.PackageManagement (2)
FileModifiers\XmlTransformer.cs (1)
159using var zipArchive = new ZipArchive(packageStream);
Projects\MSBuildNuGetProject.cs (1)
463using var zipArchive = new ZipArchive(packageStream);
NuGet.Packaging (8)
PackageArchiveReader.cs (5)
82: this(new ZipArchive(stream, ZipArchiveMode.Read, leaveStreamOpen), DefaultFrameworkNameProvider.Instance, DefaultCompatibilityProvider.Instance) 95: this(new ZipArchive(stream, ZipArchiveMode.Read, leaveStreamOpen), frameworkProvider, compatibilityProvider) 139_zipArchive = new ZipArchive(stream, ZipArchiveMode.Read); 414using (var zip = new ZipArchive(ZipReadStream, ZipArchiveMode.Read, leaveOpen: true)) 555using (var zip = new ZipArchive(ZipReadStream, ZipArchiveMode.Read, leaveOpen: true))
PackageCreation\Authoring\PackageBuilder.cs (1)
344using (var package = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true))
PackageFileExtractor.cs (1)
110using (var zipArchive = new ZipArchive(outputStream, ZipArchiveMode.Create))
Signing\Package\SignedPackageArchive.cs (1)
27: base(new ZipArchive(packageReadStream, ZipArchiveMode.Read, leaveOpen: true), DefaultFrameworkNameProvider.Instance, DefaultCompatibilityProvider.Instance)
sdk-tasks (2)
ExtractArchiveToDirectory.cs (1)
86using var zip = new ZipArchive(File.OpenRead(SourceArchive));
ZipFileCreateFromDirectory.cs (1)
74using (ZipArchive zipFile = new(writer, ZipArchiveMode.Create))
System.IO.Compression (3)
System\IO\Compression\ZipArchive.Async.cs (1)
87ZipArchive zipArchive = new(mode, leaveOpen, entryNameEncoding, backingStream, DecideArchiveStream(mode, stream));
System\IO\Compression\ZipArchive.cs (1)
208/// The comment encoding is determined by the <c>entryNameEncoding</c> parameter of the <see cref="ZipArchive(Stream,ZipArchiveMode,bool,Encoding?)"/> constructor.
System\IO\Compression\ZipArchiveEntry.cs (1)
225///The comment encoding is determined by the <c>entryNameEncoding</c> parameter of the <see cref="ZipArchive(Stream,ZipArchiveMode,bool,Encoding?)"/> constructor.
System.IO.Compression.ZipFile (3)
System\IO\Compression\ZipFile.Create.cs (2)
155return new ZipArchive(fs, mode, leaveOpen: false, entryNameEncoding: entryNameEncoding); 422using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding);
System\IO\Compression\ZipFile.Extract.cs (1)
328using ZipArchive archive = new ZipArchive(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding);
System.IO.Packaging (2)
System\IO\Packaging\ZipPackage.cs (2)
328zipArchive = new ZipArchive(_containerStream, zipArchiveMode, true); 398zipArchive = new ZipArchive(s, zipArchiveMode, true);
151 references to ZipArchive
aspire (4)
src\Shared\Export\ExportArchive.cs (3)
57using var archive = new ZipArchive(fileStream, ZipArchiveMode.Create, leaveOpen: false); 67using var archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true); 79private void WriteEntries(ZipArchive archive)
Utils\ArchiveHelper.cs (1)
40using var archive = ZipFile.OpenRead(archivePath);
Aspire.Cli.Tests (8)
Commands\ExportCommandTests.cs (8)
68using var archive = ZipFile.OpenRead(outputPath); 288using var archive = ZipFile.OpenRead(outputPath); 351using var archive = ZipFile.OpenRead(outputPath); 470using var archive = ZipFile.OpenRead(outputPath); 529using var archive = ZipFile.OpenRead(outputPath); 590using var archive = ZipFile.OpenRead(outputPath); 664using var archive = ZipFile.OpenRead(outputPath); 756private static string ReadEntryText(ZipArchive archive, string entryName)
Aspire.Dashboard (4)
Model\TelemetryImportService.cs (1)
95using var archive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: true);
src\Shared\Export\ExportArchive.cs (3)
57using var archive = new ZipArchive(fileStream, ZipArchiveMode.Create, leaveOpen: false); 67using var archive = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true); 79private void WriteEntries(ZipArchive archive)
Aspire.Dashboard.Tests (6)
Model\TelemetryExportServiceTests.cs (4)
647using var archive = new ZipArchive(memoryStream, ZipArchiveMode.Read); 718using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 776using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); 829using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read);
Model\TelemetryImportServiceTests.cs (2)
128using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Create, leaveOpen: true)) 170using (var archive = new ZipArchive(zipStream, ZipArchiveMode.Create, leaveOpen: true))
crossgen2 (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
220using (var archive = ZipFile.Open(zipFileName, ZipArchiveMode.Create))
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
220using (var archive = ZipFile.Open(zipFileName, ZipArchiveMode.Create))
ILCompiler.ReadyToRun (1)
IBC\MIbcProfileParser.cs (1)
103using (var zipFile = new ZipArchive(fsMibcFile, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null))
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (1)
103using (var zipFile = new ZipArchive(fsMibcFile, ZipArchiveMode.Read, leaveOpen: false, entryNameEncoding: null))
Microsoft.Arcade.Common (5)
IZipArchiveManager.cs (1)
17ZipArchive OpenArchive(string archivePath, ZipArchiveMode mode);
NupkgInfoFactory.cs (1)
32ZipArchive zipArchive = new(stream, ZipArchiveMode.Read);
ZipArchiveManager.cs (3)
15public ZipArchive OpenArchive(string archivePath, ZipArchiveMode mode) 33using ZipArchive zip = new(fs, archiveExists ? ZipArchiveMode.Update : ZipArchiveMode.Create, false); 50using ZipArchive archive = new(archiveStream, ZipArchiveMode.Update);
Microsoft.Build (2)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
409using var zipArchive = new ZipArchive(embeddedStream, ZipArchiveMode.Read);
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
26private ZipArchive? _zipArchive;
Microsoft.Build.Tasks.Core (3)
Unzip.cs (3)
136using (ZipArchive zipArchive = new ZipArchive(stream, ZipArchiveMode.Read, leaveOpen: false)) 175/// <param name="sourceArchive">The <see cref="ZipArchive"/> containing the files to extract.</param> 177private void Extract(ZipArchive sourceArchive, DirectoryInfo destinationDirectory)
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
184using ZipArchive zipFile = new(stream);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
99using (var archive = new ZipArchive(File.Open(vsixPath, FileMode.Open), ZipArchiveMode.Read))
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
219using (var archive = new ZipArchive(File.Open(tempPackagePath, FileMode.Open, FileAccess.ReadWrite), ZipArchiveMode.Update))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
152using (var projectAssetArchive = new ZipArchive(
Microsoft.ML.Core (4)
ComponentModel\AssemblyLoadingUtils.cs (1)
48ZipArchive zip;
Data\Repository.cs (3)
40/// Abstraction around a <see cref="ZipArchive"/> or other hierarchical storage. 292private ZipArchive _archive; 448private readonly ZipArchive _archive;
Microsoft.ML.Ensemble (4)
EntryPoints\CreateEnsemble.cs (4)
315/// This method takes a <see cref="RoleMappedData"/> as input, saves it as an in-memory <see cref="ZipArchive"/> 333var zip = new ZipArchive(ms); 353/// The comparison is done by saving <see ref="dataToCompare"/> as an in-memory <see cref="ZipArchive"/>, 381var zip = new ZipArchive(ms);
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
61using (ZipArchive archive = ZipFile.OpenRead(modelPath))
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1058using (var zip = new ZipArchive(strm, ZipArchiveMode.Read))
Microsoft.TemplateEngine.Edge (3)
Mount\Archive\ZipFileMountPoint.cs (2)
18internal ZipFileMountPoint(IEngineEnvironmentSettings environmentSettings, IMountPoint? parent, string mountPointUri, ZipArchive archive) 35internal ZipArchive Archive { get; }
Mount\Archive\ZipFileMountPointFactory.cs (1)
31ZipArchive archive;
netstandard (1)
netstandard.cs (1)
895[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Compression.ZipArchive))]
NuGet.Common (1)
PathUtil\PathUtility.cs (1)
431public static ZipArchiveEntry? GetEntry(ZipArchive archive, string path)
NuGet.PackageManagement (3)
FileModifiers\XmlTransformer.cs (1)
159using var zipArchive = new ZipArchive(packageStream);
Projects\MSBuildNuGetProject.cs (1)
463using var zipArchive = new ZipArchive(packageStream);
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
215ZipArchive zipArchive,
NuGet.Packaging (18)
PackageArchiveReader.cs (5)
26private readonly ZipArchive _zipArchive; 104public PackageArchiveReader(ZipArchive zipArchive) 115public PackageArchiveReader(ZipArchive zipArchive, IFrameworkNameProvider frameworkProvider, IFrameworkCompatibilityProvider compatibilityProvider) 414using (var zip = new ZipArchive(ZipReadStream, ZipArchiveMode.Read, leaveOpen: true)) 555using (var zip = new ZipArchive(ZipReadStream, ZipArchiveMode.Read, leaveOpen: true))
PackageCreation\Authoring\PackageBuilder.cs (9)
344using (var package = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true)) 921private ZipArchiveEntry CreateEntry(ZipArchive package, string entryName, CompressionLevel compressionLevel) 931private static ZipArchiveEntry CreatePackageFileEntry(ZipArchive package, string entryName, DateTimeOffset timeOffset, CompressionLevel compressionLevel, StringBuilder warningMessage) 953private void WriteManifest(ZipArchive package, int minimumManifestVersion, string psmdcpPath) 968private SortedSet<string> WriteFiles(ZipArchive package, SortedSet<string> filesWithoutExtensions) 1136private void CreatePart(ZipArchive package, string path, Stream sourceStream, DateTimeOffset lastWriteTime, StringBuilder warningMessage) 1185private void WriteOpcManifestRelationship(ZipArchive package, string path, string psmdcpPath) 1211private void WriteOpcContentTypes(ZipArchive package, SortedSet<string> extensions, SortedSet<string> filesWithoutExtensions) 1254private void WriteOpcPackageProperties(ZipArchive package, string psmdcpPath)
PackageExtraction\ZipArchiveExtensions.cs (3)
20public static ZipArchiveEntry LookupEntry(this ZipArchive zipArchive, string path) 31public static IEnumerable<string> GetFiles(this ZipArchive zipArchive) 51public static Stream OpenFile(this ZipArchive zipArchive, string path)
PackageFileExtractor.cs (1)
110using (var zipArchive = new ZipArchive(outputStream, ZipArchiveMode.Create))
sdk-tasks (2)
ExtractArchiveToDirectory.cs (1)
86using var zip = new ZipArchive(File.OpenRead(SourceArchive));
ZipFileCreateFromDirectory.cs (1)
74using (ZipArchive zipFile = new(writer, ZipArchiveMode.Create))
System.IO.Compression (24)
System\IO\Compression\ZipArchive.Async.cs (5)
16/// Asynchronously initializes and returns a new instance of <see cref="ZipArchive"/> on the given stream in the specified mode, specifying whether to leave the stream open, with an optional encoding and an optional cancellation token. 66/// <returns>A task that represents the asynchronous initialization. The task result is a <see cref="ZipArchive"/> instance opened on the provided stream.</returns> 67public static async Task<ZipArchive> CreateAsync(Stream stream, ZipArchiveMode mode, bool leaveOpen, Encoding? entryNameEncoding, CancellationToken cancellationToken = default) 87ZipArchive zipArchive = new(mode, leaveOpen, entryNameEncoding, backingStream, DecideArchiveStream(mode, stream)); 135/// Asynchronously releases the resources used by the <see cref="ZipArchive"/>.
System\IO\Compression\ZipArchiveEntry.Async.cs (1)
351bool storedDataModified = (Changes & ZipArchive.ChangeState.StoredData) != 0;
System\IO\Compression\ZipArchiveEntry.cs (18)
19private ZipArchive _archive; 53internal ZipArchiveEntry(ZipArchive archive, ZipCentralDirectoryFileHeader cd) 62Changes = ZipArchive.ChangeState.Unchanged; 102internal ZipArchiveEntry(ZipArchive archive, string entryName, CompressionLevel compressionLevel) 114internal ZipArchiveEntry(ZipArchive archive, string entryName) 161Changes = ZipArchive.ChangeState.Unchanged; 167public ZipArchive Archive => _archive; 217Changes |= ZipArchive.ChangeState.FixedLengthMetadata; 240Changes |= ZipArchive.ChangeState.DynamicLengthMetadata; 305Changes |= ZipArchive.ChangeState.FixedLengthMetadata; 328internal ZipArchive.ChangeState Changes { get; private set; } 613if (_originallyInArchive && Changes == ZipArchive.ChangeState.Unchanged && !forceWrite) 864Changes |= ZipArchive.ChangeState.StoredData; 914Changes |= ZipArchive.ChangeState.StoredData; 1148if (_originallyInArchive && Changes == ZipArchive.ChangeState.Unchanged && !forceWrite) 1228bool storedDataModified = (Changes & ZipArchive.ChangeState.StoredData) != 0; 1484Changes |= ZipArchive.ChangeState.FixedLengthMetadata; 1489Changes |= ZipArchive.ChangeState.FixedLengthMetadata;
System.IO.Compression.ZipFile (35)
System\IO\Compression\ZipFile.Create.Async.cs (11)
35/// <returns>A task that represents the asynchronous operation. The task result is an opened <see cref="ZipArchive"/> in <see cref="ZipArchiveMode.Read"/> mode.</returns> 36public static Task<ZipArchive> OpenReadAsync(string archiveFileName, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, ZipArchiveMode.Read, cancellationToken); 75/// <returns>A task that represents the asynchronous operation. The task result is an opened <see cref="ZipArchive"/> in the requested <paramref name="mode"/>.</returns> 76public static Task<ZipArchive> OpenAsync(string archiveFileName, ZipArchiveMode mode, CancellationToken cancellationToken = default) => OpenAsync(archiveFileName, mode, entryNameEncoding: null, cancellationToken); 154/// <returns>A task that represents the asynchronous operation. The task result is an opened <see cref="ZipArchive"/> in the requested <paramref name="mode"/>.</returns> 155public static async Task<ZipArchive> OpenAsync(string archiveFileName, ZipArchiveMode mode, Encoding? entryNameEncoding, CancellationToken cancellationToken = default) 168return await ZipArchive.CreateAsync(fs, mode, leaveOpen: false, entryNameEncoding: entryNameEncoding, cancellationToken).ConfigureAwait(false); 445ZipArchive archive = await OpenAsync(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding, cancellationToken).ConfigureAwait(false); 459ZipArchive archive = await ZipArchive.CreateAsync(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false); 466private static async Task CreateZipArchiveFromDirectoryAsync(string sourceDirectoryName, ZipArchive archive,
System\IO\Compression\ZipFile.Create.cs (7)
31public static ZipArchive OpenRead(string archiveFileName) => Open(archiveFileName, ZipArchiveMode.Read); 68public static ZipArchive Open(string archiveFileName, ZipArchiveMode mode) => Open(archiveFileName, mode, entryNameEncoding: null); 144public static ZipArchive Open(string archiveFileName, ZipArchiveMode mode, Encoding? entryNameEncoding) 413using ZipArchive archive = Open(destinationArchiveFileName, ZipArchiveMode.Create, entryNameEncoding); 422using ZipArchive archive = new ZipArchive(destination, ZipArchiveMode.Create, leaveOpen: true, entryNameEncoding); 426private static void CreateZipArchiveFromDirectory(string sourceDirectoryName, ZipArchive archive, 531private static void FinalizeCreateZipArchiveFromDirectory(ZipArchive archive, DirectoryInfo di, bool includeBaseDirectory, bool directoryIsEmpty)
System\IO\Compression\ZipFile.Extract.Async.cs (3)
201ZipArchive archive = await OpenAsync(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding, cancellationToken).ConfigureAwait(false); 359ZipArchive archive = await ZipArchive.CreateAsync(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Extract.cs (2)
185using (ZipArchive archive = Open(sourceArchiveFileName, ZipArchiveMode.Read, entryNameEncoding)) 328using ZipArchive archive = new ZipArchive(source, ZipArchiveMode.Read, leaveOpen: true, entryNameEncoding);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (3)
46public static Task<ZipArchiveEntry> CreateEntryFromFileAsync(this ZipArchive destination, string sourceFileName, string entryName, CancellationToken cancellationToken = default) => 79public static Task<ZipArchiveEntry> CreateEntryFromFileAsync(this ZipArchive destination, 83internal static async Task<ZipArchiveEntry> DoCreateEntryFromFileAsync(this ZipArchive destination, string sourceFileName, string entryName,
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (4)
44public static ZipArchiveEntry CreateEntryFromFile(this ZipArchive destination, string sourceFileName, string entryName) => 76public static ZipArchiveEntry CreateEntryFromFile(this ZipArchive destination, 80internal static ZipArchiveEntry DoCreateEntryFromFile(this ZipArchive destination, 96private static (FileStream, ZipArchiveEntry) InitializeDoCreateEntryFromFile(ZipArchive destination, string sourceFileName, string entryName, CompressionLevel? compressionLevel, bool useAsync)
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
40public static Task ExtractToDirectoryAsync(this ZipArchive source, string destinationDirectoryName, CancellationToken cancellationToken = default) => 73public static async Task ExtractToDirectoryAsync(this ZipArchive source, string destinationDirectoryName, bool overwriteFiles, CancellationToken cancellationToken = default)
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
35public static void ExtractToDirectory(this ZipArchive source, string destinationDirectoryName) => 66public static void ExtractToDirectory(this ZipArchive source, string destinationDirectoryName, bool overwriteFiles)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
120if (source.Archive is ZipArchive archive && archive.Mode != ZipArchiveMode.Create)
System.IO.Packaging (14)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (1)
52private readonly ZipArchive _zipArchive;
System\IO\Packaging\ZipPackage.cs (7)
310ZipArchive? zipArchive = null; 355ZipArchive? zipArchive = null; 705private readonly ZipArchive _zipArchive; 768internal ContentTypeHelper(ZipArchive zipArchive, FileMode packageFileMode, FileAccess packageFileAccess, ZipStreamManager zipStreamManager, IgnoredItemHelper ignoredItemHelper) 1295private readonly ZipArchive _zipArchive; 1361private readonly ZipArchive _zipArchive; 1368internal IgnoredItemHelper(ZipArchive zipArchive)
System\IO\Packaging\ZipPackagePart.cs (3)
61ZipArchive zipArchive, 81ZipArchive zipArchive, 115private readonly ZipArchive _zipArchive;
System\IO\Packaging\ZipPackagePartPiece.cs (1)
143internal static ZipPackagePartPiece Create(ZipArchive zipArchive, PackUriHelper.ValidatedPartUri? partUri, string prefixName, int pieceNumber, bool isLastPiece)
System\IO\Packaging\ZipStreamManager.cs (2)
14private readonly ZipArchive _zipArchive; 18public ZipStreamManager(ZipArchive zipArchive, FileMode packageFileMode, FileAccess packageFileAccess)