Table of Contents

Class CommentAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

The character used to denote a line that is commented out. Default is #.

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

Constructors

CommentAttribute(char)

The character used to denote a line that is commented out.

public CommentAttribute(char comment)

Parameters

comment char

The comment character.

Properties

Comment

Gets the character used to denote a line that is commented out.

public char Comment { get; }

Property Value

char

Methods

ApplyTo(CsvConfiguration)

public void ApplyTo(CsvConfiguration configuration)

Parameters

configuration CsvConfiguration