Table of Contents

Class CacheFieldsAttribute

Namespace
CsvHelper.Configuration.Attributes
Assembly
CsvHelper.dll

Cache fields that are created when parsing.

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

Constructors

CacheFieldsAttribute(bool)

Cache fields that are created when parsing.

public CacheFieldsAttribute(bool cacheFields = true)

Parameters

cacheFields bool

Properties

CacheFields

Cache fields that are created when parsing.

public bool CacheFields { get; }

Property Value

bool

Methods

ApplyTo(CsvConfiguration)

public void ApplyTo(CsvConfiguration configuration)

Parameters

configuration CsvConfiguration