Table of Contents

Class NewLineAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

The newline string to use. Default is \r\n (CRLF). When writing, this value is always used. When reading, this value is only used if explicitly set. If not set, the parser uses one of \r\n, \r, or \n.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class NewLineAttribute : Attribute, IClassMapper
Inheritance
NewLineAttribute
Implements
Inherited Members

Constructors

NewLineAttribute(string)

public NewLineAttribute(string newLine)

Parameters

newLine string

Properties

NewLine

public string NewLine { get; }

Property Value

string

Methods

ApplyTo(CsvConfiguration)

public void ApplyTo(CsvConfiguration configuration)

Parameters

configuration CsvConfiguration