Class ReadingDataSource
- Namespace
- ChartTools.IO.Sources
- Assembly
- ChartTools.dll
Represents a source of data to read from that can be used as a Stream.
public class ReadingDataSource : DataSource, IDisposable
- Inheritance
-
ReadingDataSource
- Implements
- Inherited Members
Remarks
Constructors
ReadingDataSource(Stream)
Creates a ReadingDataSource from a Stream.
public ReadingDataSource(Stream stream)
Parameters
Remarks
The stream is kept alive after the lifetime of the ReadingDataSource.
Exceptions
- ArgumentException
The stream is not readable.
ReadingDataSource(string)
Creates a ReadingDataSource from a file path.
public ReadingDataSource(string path)
Parameters
path
stringPath of the file to source from
Remarks
Initializes the stream as a FileStream with Read and Write.
The stream is disposed when disposing the ReadingDataSource.
Operators
implicit operator ReadingDataSource(Stream)
Creates a ReadingDataSource from a Stream.
public static implicit operator ReadingDataSource(Stream stream)
Parameters
Returns
Remarks
The stream is kept alive after the lifetime of the ReadingDataSource.
Exceptions
- ArgumentException
The stream is not readable.
implicit operator ReadingDataSource(string)
Creates a ReadingDataSource from a file path.
public static implicit operator ReadingDataSource(string path)
Parameters
path
stringPath of the file to source from
Returns
Remarks
Initializes the stream as a FileStream with Read and Write.
The stream is disposed when disposing the ReadingDataSource.