CultureInfoAttribute Class
When applied to a member, specifies the CultureInfo used when type converting the member. When applied to a type, the value of CultureInfo in the CsvConfiguration returned by FromAttributes<T>()
graph BT Type-->Base0["Attribute"] Type-.->Interface0["IClassMapper"] click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IClassMapper" Type-.->Interface1["IMemberMapper"] click Interface1 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IMemberMapper" Type-.->Interface2["IParameterMapper"] click Interface2 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IParameterMapper" Type["CultureInfoAttribute"] class Type type-node

Syntax

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

Attributes

Type Description
AttributeUsage

Constructors

Properties

Name Property Type Summary
CultureInfo CultureInfo
Gets the culture info.

Methods

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