Skip to content

Commit deb5ccf

Browse files
authored
Merge pull request #2261 from RobTranquillo/patch-1
fix (typo?): error CS1061 function in class not found
2 parents 4bb46f4 + 6c723a3 commit deb5ccf

File tree

1 file changed

+4
-1
lines changed
  • docs/examples/configuration/class-maps/mapping-by-name

1 file changed

+4
-1
lines changed

docs/examples/configuration/class-maps/mapping-by-name/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,13 @@ <h6 id="data">Data</h6>
412412
<h6 id="example">Example</h6>
413413
<pre><code class="language-cs">void Main()
414414
{
415+
using CsvHelper;
416+
using CsvHelper.Configuration;
417+
415418
using (var reader = new StreamReader(&quot;path\\to\\file.csv&quot;))
416419
using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
417420
{
418-
csv.Context.RegisterClassMap&lt;FooMap&gt;();
421+
csv.Configuration.RegisterClassMap&lt;FooMap&gt;();
419422
var records = csv.GetRecords&lt;Foo&gt;();
420423
}
421424
}

0 commit comments

Comments
 (0)