Class CsvSyncInputBase
Models a CSV source data stream that can be processed synchronously.
Inheritance
CsvSyncInputBase
Inherited Members
Namespace: Cursively.Inputs
Assembly: Cursively.dll
Syntax
public abstract class CsvSyncInputBase
Methods
| Improve this Doc View SourceProcess(CsvReaderVisitorBase)
Describes the contents of this CSV data stream to a CsvReaderVisitorBase.
Declaration
public void Process(CsvReaderVisitorBase visitor)
Parameters
Type | Name | Description |
---|---|---|
CsvReaderVisitorBase | visitor | The CsvReaderVisitorBase to describe this CSV data stream to. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when this stream has already been processed. |
ProcessCore(CsvReaderVisitorBase)
Implements the inner logic for Process(CsvReaderVisitorBase).
Declaration
protected abstract void ProcessCore(CsvReaderVisitorBase visitor)
Parameters
Type | Name | Description |
---|---|---|
CsvReaderVisitorBase | visitor | The CsvReaderVisitorBase to describe this CSV data stream to. |
Remarks
The base class will call this method at most once per instance.
ThrowIfProcessingHasAlreadyStarted()
Throws if Process(CsvReaderVisitorBase) has already been called for this instance.
Declaration
protected void ThrowIfProcessingHasAlreadyStarted()