Show / Hide Table of Contents

    Class CsvReadOnlyMemoryInput

    Implementation of CsvSyncInputBase backed by a ReadOnlyMemory<T> of bytes.

    Inheritance
    Object
    CsvSyncInputBase
    CsvReadOnlyMemoryInput
    Inherited Members
    CsvSyncInputBase.Process(CsvReaderVisitorBase)
    CsvSyncInputBase.ThrowIfProcessingHasAlreadyStarted()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Cursively.Inputs
    Assembly: Cursively.dll
    Syntax
    public sealed class CsvReadOnlyMemoryInput : CsvSyncInputBase

    Methods

    | Improve this Doc View Source

    ProcessCore(CsvReaderVisitorBase)

    Implements the inner logic for Process(CsvReaderVisitorBase).

    Declaration
    protected override void ProcessCore(CsvReaderVisitorBase visitor)
    Parameters
    Type Name Description
    CsvReaderVisitorBase visitor

    The CsvReaderVisitorBase to describe this CSV data stream to.

    Overrides
    CsvSyncInputBase.ProcessCore(CsvReaderVisitorBase)
    Remarks

    The base class will call this method at most once per instance.

    | Improve this Doc View Source

    WithDelimiter(Byte)

    Creates a new instance of the CsvReadOnlyMemoryInput class as a copy of this one, with the given delimiter.

    Declaration
    public CsvReadOnlyMemoryInput WithDelimiter(byte delimiter)
    Parameters
    Type Name Description
    Byte delimiter

    The delimiter to use. Use IsValidDelimiter(Byte) to test whether or not a particular value is valid.

    Returns
    Type Description
    CsvReadOnlyMemoryInput

    A new instance of the CsvReadOnlyMemoryInput class as a copy of this one, with the given delimiter.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when delimiter is one of the illegal values.

    InvalidOperationException

    Thrown when Process(CsvReaderVisitorBase) has already been called.

    | Improve this Doc View Source

    WithIgnoreUTF8ByteOrderMark(Boolean)

    Creates a new instance of the CsvReadOnlyMemoryInput class as a copy of this one, with the given flag indicating whether or not a leading UTF-8 byte order mark, if present, should be omitted from the first field's data.

    Declaration
    public CsvReadOnlyMemoryInput WithIgnoreUTF8ByteOrderMark(bool ignoreUTF8ByteOrderMark)
    Parameters
    Type Name Description
    Boolean ignoreUTF8ByteOrderMark

    A value indicating whether or not a leading UTF-8 byte order mark, if present, should be omitted from the first field's data.

    Returns
    Type Description
    CsvReadOnlyMemoryInput

    A new instance of the CsvReadOnlyMemoryInput class as a copy of this one, with the given flag indicating whether or not a leading UTF-8 byte order mark, if present, should be omitted from the first field's data.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when Process(CsvReaderVisitorBase) has already been called.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX