Class CultureInfoAttribute
- Namespace
- CsvHelper.Configuration.Attributes
- Assembly
- CsvHelper.dll
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>()
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class CultureInfoAttribute : Attribute, IClassMapper, IMemberMapper, IParameterMapper
- Inheritance
-
CultureInfoAttribute
- Implements
- Inherited Members
Constructors
CultureInfoAttribute(string)
public CultureInfoAttribute(string name)
Parameters
name
stringThe name of a culture (case insensitive), or the literal values
"InvariantCulture"
,"CurrentCulture"
,"CurrentUICulture"
,"InstalledUICulture"
to use the corresponding static properties on CultureInfo.
Properties
CultureInfo
Gets the culture info.
public CultureInfo CultureInfo { get; }
Property Value
Methods
ApplyTo(CsvConfiguration)
public void ApplyTo(CsvConfiguration configuration)
Parameters
configuration
CsvConfiguration
ApplyTo(MemberMap)
public void ApplyTo(MemberMap memberMap)
Parameters
memberMap
MemberMap
ApplyTo(ParameterMap)
public void ApplyTo(ParameterMap parameterMap)
Parameters
parameterMap
ParameterMap