CountBytesAttribute Class
A value indicating whether the number of bytes should be counted while parsing. This will slow down parsing because it needs to get the byte count of every char for the given encoding. The Encoding needs to be set correctly for this to be accurate.
Namespace
CsvHelper.Configuration.Attributes
Interfaces
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type-.->Interface0["IClassMapper"] click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IClassMapper" Type["CountBytesAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class CountBytesAttribute : Attribute, IClassMapper

Attributes

Type Description
AttributeUsage

Constructors

Name Summary
CountBytesAttribute(bool) A value indicating whether the number of bytes should be counted while parsing. This will slow down parsing because it needs to get the byte count of every char for the given encoding. The Encoding needs to be set correctly for this to be accurate.

Properties

Name Property Type Summary
CountBytes bool
A value indicating whether the number of bytes should be counted while parsing. This will slow down parsing because it needs to get the byte count of every char for the given encoding. The Encoding needs to be set correctly for this to be accurate.

Methods

Name Return Value Summary
ApplyTo(CsvConfiguration) void
Applies configuration.