Incomplete refactoring

This commit is contained in:
Adam Hathcock
2016-09-29 11:10:11 +01:00
parent 3f8c9c4cb0
commit 54a562273b
4 changed files with 6 additions and 4 deletions

View File

@@ -31,6 +31,8 @@ To be explicit though, consider always using the overloads that use `ReaderOptio
## Samples
Also, look over the tests for more thorough [examples](https://github.com/adamhathcock/sharpcompress/tree/master/test/SharpCompress.Test)
### Create Zip Archive from all files in a directory to a file
```C#

View File

@@ -37,7 +37,7 @@ namespace SharpCompress.Test
using (var archive = RarArchive.Open(stream, new ReaderOptions()
{
Password = password,
LeaveOpenStream = true
LeaveStreamOpen = true
}))
{
foreach (var entry in archive.Entries)
@@ -68,7 +68,7 @@ namespace SharpCompress.Test
using (var archive = RarArchive.Open(Path.Combine(TEST_ARCHIVES_PATH, archiveName), new ReaderOptions()
{
Password = password,
LeaveOpenStream = true
LeaveStreamOpen = true
}))
{
foreach (var entry in archive.Entries.Where(entry => !entry.IsDirectory))

View File

@@ -18,7 +18,7 @@ namespace SharpCompress.Test.Rar
ResetScratch();
rarHeaderFactory = new RarHeaderFactory(StreamingMode.Seekable, new ReaderOptions()
{
LeaveOpenStream = true
LeaveStreamOpen = true
});
}

View File

@@ -23,7 +23,7 @@ namespace SharpCompress.Test
{
using (var writer = WriterFactory.Open(new NonDisposingStream(stream), type, new WriterOptions(compressionType)
{
LeaveOpenStream = true
LeaveStreamOpen = true
}))
{
writer.WriteAll(ORIGINAL_FILES_PATH, "*", SearchOption.AllDirectories);