mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-04-05 21:51:09 +00:00
update docs
This commit is contained in:
@@ -231,11 +231,11 @@ using (var writer = WriterFactory.OpenWriter(stream, ArchiveType.Zip, Compressio
|
||||
|
||||
### ReaderOptions
|
||||
|
||||
Use factory presets and fluent helpers for common configurations:
|
||||
Use preset properties and fluent helpers for common configurations:
|
||||
|
||||
```csharp
|
||||
// External stream with password and custom encoding
|
||||
var options = ReaderOptions.ForExternalStream()
|
||||
var options = ReaderOptions.ForExternalStream
|
||||
.WithPassword("password")
|
||||
.WithArchiveEncoding(new ArchiveEncoding { Default = Encoding.GetEncoding(932) });
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace SharpCompress.Readers;
|
||||
/// Options for configuring reader behavior when opening archives.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This class is immutable. Use factory presets and fluent helpers for common configurations:
|
||||
/// This class is immutable. Use preset properties and fluent helpers for common configurations:
|
||||
/// <code>
|
||||
/// var options = ReaderOptions.ForExternalStream()
|
||||
/// var options = ReaderOptions.ForExternalStream
|
||||
/// .WithPassword("secret")
|
||||
/// .WithLookForHeader(true);
|
||||
/// </code>
|
||||
|
||||
Reference in New Issue
Block a user