Search Results for

    Show / Hide Table of Contents

    Class CsvSerializationSettings

    Privides settings that control the process of CSV serialization.
    Inheritance
    object
    CsvSerializationSettings
    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 CsvSerializationSettings

    Properties

    BufferSize

    Gets or sets the size in bytes of the internal buffer for writing data within the process of CSV serialization. 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 for string representation (for example, when Data of a sysex event is being serialized). 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) should be 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 should be presented in CSV. The default value is Midi. 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) should be presented in CSV. The default value is NoteNumber.
    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 should be presented in CSV. The default value is Midi. 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.

    See Also

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