Skip to content

Commit

Permalink
Fixed an issue with error when loading blank lines (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Sep 28, 2020
1 parent 47911b9 commit 8d03f78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2">
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions CsvHelper.FastDynamic/CsvReaderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static IEnumerable<dynamic> EnumerateDynamicRecords(this CsvReader csvRea
{
var values = new object[context.HeaderRecord.Length];

Array.Copy(context.Record, values, values.Length);
Array.Copy(context.Record, values, context.Record.Length);

record = new CsvRecord(csvHeader, values);
}
Expand Down Expand Up @@ -96,7 +96,7 @@ public static async IAsyncEnumerable<dynamic> EnumerateDynamicRecordsAsync(this
{
var values = new object[context.HeaderRecord.Length];

Array.Copy(context.Record, values, values.Length);
Array.Copy(context.Record, values, context.Record.Length);

record = new CsvRecord(csvHeader, values);
}
Expand Down

0 comments on commit 8d03f78

Please sign in to comment.