Namespace
CsvHelper
Assembly
CsvHelper.dll
Inheritance
object Attribute CsvCultureAttribute
Builds
net10.0 netstandard2.1 netstandard2.0 net47

Remarks

The culture is looked up with CultureInfo.GetCultureInfo(string) when a mapper is created, so an unknown name (or any name but the invariant culture's in an app that runs in globalization invariant mode) throws a CultureNotFoundException there.

Constructors

CsvCultureAttribute(string)

Added in v34.0.0
public CsvCultureAttribute(string name)

Reads the member with the culture called name.

Parameters

namestring
The name of the culture, such as "de-DE"; "" is the invariant culture.

View source

Properties

Name

Added in v34.0.0
public string Name { get; }

The name of the culture.

Property value

string

View source