Table of Contents

Class AllowCommentsAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

A value indicating whether comments are allowed.

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

Constructors

AllowCommentsAttribute(bool)

A value indicating whether comments are allowed.

public AllowCommentsAttribute(bool allowComments = true)

Parameters

allowComments bool

The value indicating whether comments are allowed.

Properties

AllowComments

Gets a value indicating whether comments are allowed.

public bool AllowComments { get; }

Property Value

bool

Methods

ApplyTo(CsvConfiguration)

public void ApplyTo(CsvConfiguration configuration)

Parameters

configuration CsvConfiguration