FormatAttribute Class
The string format to be used when type converting.
Namespace
CsvHelper.Configuration.Attributes
Interfaces
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type-.->Interface0["IMemberMapper"] click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IMemberMapper" Type-.->Interface1["IParameterMapper"] click Interface1 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IParameterMapper" Type["FormatAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class FormatAttribute : Attribute, IMemberMapper, IParameterMapper

Attributes

Type Description
AttributeUsage

Constructors

Name Summary
FormatAttribute(string) The string format to be used when type converting.
FormatAttribute(string[]) The string format to be used when type converting.

Properties

Name Property Type Summary
Formats string[]
Gets the formats.

Methods

Name Return Value Summary
ApplyTo(MemberMap) void
Applies configuration to the given MemberMap.
ApplyTo(ParameterMap) void
Applies configuration to the given ParameterMap.