Class XmlSingleStreamExtractorOptions
Options for configuring an XmlSingleStreamExtractor<TRecord>.
public sealed class XmlSingleStreamExtractorOptions
- Inheritance
-
XmlSingleStreamExtractorOptions
- Inherited Members
Examples
var extractor = new XmlSingleStreamExtractor<Person>
(
stream,
new XmlSingleStreamExtractorOptions { LeaveOpen = false }
);
Properties
LeaveOpen
Gets or initializes a value indicating whether the stream should remain open after extraction completes.
public bool LeaveOpen { get; init; }
Property Value
Remarks
When true (default) the caller retains responsibility for the stream
lifetime. When false the stream is closed when extraction finishes,
mirroring the behaviour of StreamReader and
BinaryReader.