title: LinqToCSV and decimal globalization
body: <p>I'm trying to read a csv file using LingToCSV, containing decimal values with a comma a seperator instead of a point.</p>
  
  <p>This is one row of input:</p>
  
  <pre><code>"DataField1","DataField2"
  "Test", "0,34"
  </code></pre>
  
  <p>And I use this class to read it:</p>
  
  <pre><code>public class Record
  {
     [CsvColumn(Name = "DataField1", FieldIndex=  1)]
     string DataField1 {get;set;}
  
     [CsvColumn(Name = "DataField2", FieldIndex=  2, OutputFormat="C", NumberStyle=NumberStyles.Currency)]
     decimal DataField2 {get;set;}
  }
  </code></pre>
  
  <p>However, this doesn't work and generates this exception:</p>
  
  <blockquote>
    <p>{"Value \"DataField2\" in line 9 has the wrong format for field or
    property \"DataFoe;d2\" in type \"Record\"."}</p>
  </blockquote>
  
  <p>Obviously it's expecting a point, but how can I make it work using the commas.</p>