Search Results for

    Show / Hide Table of Contents

    Class CsvDeserializationSettings

    Privides settings that control the process of CSV deserialization.
    Inheritance
    object
    CsvDeserializationSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Tools
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class CsvDeserializationSettings

    Properties

    BufferSize

    Gets or sets the size in bytes of the internal buffer for reading data within the process of CSV deserialization. The default value is 1024.
    Declaration
    public int BufferSize { get; set; }
    Property Value
    Type Description
    int
    Exceptions
    Type Condition
    ArgumentOutOfRangeException value is zero or negative.

    BytesArrayDelimiter

    Gets or sets the character used to delimit elements in a byte array when represented as a string (for example, when Data of a sysex event is being deserialized). The default value is space (' ').
    Declaration
    public char BytesArrayDelimiter { get; set; }
    Property Value
    Type Description
    char

    BytesArrayFormat

    Gets or sets a value that defines how bytes arrays (for example, Data) are presented in CSV. The default value is Decimal.
    Declaration
    public CsvBytesArrayFormat BytesArrayFormat { get; set; }
    Property Value
    Type Description
    CsvBytesArrayFormat
    Exceptions
    Type Condition
    InvalidEnumArgumentException value specified an invalid value.

    Delimiter

    Gets or sets the character used as the values delimiter in CSV records. The default value is comma (',').
    Declaration
    public char Delimiter { get; set; }
    Property Value
    Type Description
    char

    LengthType

    Gets or sets a value that defines how length of notes is presented in CSV. The default value is null which means length format will be resolved automatically. More info on the supported formats in the Time and length article.
    Declaration
    public TimeSpanType? LengthType { get; set; }
    Property Value
    Type Description
    TimeSpanType?
    Exceptions
    Type Condition
    InvalidEnumArgumentException value specified an invalid value.

    NoteFormat

    Gets or sets a value that defines how note numbers (for example, NoteNumber) are presented in CSV. The default value is null which means note format will be resolved automatically.
    Declaration
    public CsvNoteFormat? NoteFormat { get; set; }
    Property Value
    Type Description
    CsvNoteFormat?
    Exceptions
    Type Condition
    InvalidEnumArgumentException value specified an invalid value.

    TimeType

    Gets or sets a value that defines how the time of objects is presented in CSV. The default value is null which means time format will be resolved automatically. More info on the supported formats in the Time and length article.
    Declaration
    public TimeSpanType? TimeType { get; set; }
    Property Value
    Type Description
    TimeSpanType?
    Exceptions
    Type Condition
    InvalidEnumArgumentException value specified an invalid value.

    UnknownRecordPolicy

    Gets or sets a value indicating how unknown records should be handled. The default value is Abort which means the process will be aborted with an exception.
    Declaration
    public UnknownRecordPolicy UnknownRecordPolicy { get; set; }
    Property Value
    Type Description
    UnknownRecordPolicy
    Exceptions
    Type Condition
    InvalidEnumArgumentException value specified an invalid value.

    See Also

    CsvSerializer
    In this article
    Back to top 2025 / Generated by DocFX