Search Results for

    Show / Hide Table of Contents

    Class CsvSerializationSettings

    Privides settings that control the process of CSV serialization/deserialization.
    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

    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 a char 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.

    ReadWriteBufferSize

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

    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 2024 / Generated by DocFX