diff --git a/src/NLight.Tests.Benchmarks/IO/Text/DelimitedRecordReaderBenchmarks.cs b/src/NLight.Tests.Benchmarks/IO/Text/DelimitedRecordReaderBenchmarks.cs index c42a0a0..9c70fa3 100644 --- a/src/NLight.Tests.Benchmarks/IO/Text/DelimitedRecordReaderBenchmarks.cs +++ b/src/NLight.Tests.Benchmarks/IO/Text/DelimitedRecordReaderBenchmarks.cs @@ -7,6 +7,8 @@ using DS = DataStreams.Csv; using LW = LumenWorks.Framework.IO.Csv; using CH = CsvHelper; +using System.Collections.Generic; +using System; namespace NLight.Tests.Benchmarks.IO.Text { @@ -106,7 +108,7 @@ public static void ReadAll_DataStreams(DelimitedRecordReaderBenchmarkArguments a public static void ReadAll_CsvHelper(DelimitedRecordReaderBenchmarkArguments args) { - var config = new CH.Configuration.Configuration + var config = new CH.Configuration.CsvConfiguration(System.Globalization.CultureInfo.InvariantCulture) { BufferSize = args.BufferSize, AllowComments = true, @@ -124,9 +126,8 @@ public static void ReadAll_CsvHelper(DelimitedRecordReaderBenchmarkArguments arg { while (reader.Read()) { - var record = reader.Context.Record; - for (int i = 0; i < record.Length; i++) - s = record[i]; + for (int i = 0; i < reader.ColumnCount; i++) + s = reader[i]; } } else diff --git a/src/NLight.Tests.Benchmarks/NLight.Tests.Benchmarks.csproj b/src/NLight.Tests.Benchmarks/NLight.Tests.Benchmarks.csproj index 9fca4d0..08723a6 100644 --- a/src/NLight.Tests.Benchmarks/NLight.Tests.Benchmarks.csproj +++ b/src/NLight.Tests.Benchmarks/NLight.Tests.Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.0 + net6.0 @@ -10,7 +10,7 @@ - + diff --git a/src/NLight.Tests.Unit/NLight.Tests.Unit.csproj b/src/NLight.Tests.Unit/NLight.Tests.Unit.csproj index 3804371..3636d14 100644 --- a/src/NLight.Tests.Unit/NLight.Tests.Unit.csproj +++ b/src/NLight.Tests.Unit/NLight.Tests.Unit.csproj @@ -1,7 +1,7 @@ - netcoreapp2.0 + net6.0 @@ -9,9 +9,9 @@ - - - + + + diff --git a/src/NLight/NLight.csproj b/src/NLight/NLight.csproj index dbed36b..e98ffea 100644 --- a/src/NLight/NLight.csproj +++ b/src/NLight/NLight.csproj @@ -1,22 +1,22 @@  - netstandard2.0;net46 - 2.1.1 + netstandard2.0 + 2.2.0 Copyright (c) 2009 Sébastien Lorion Sébastien Lorion Toolbox for .NET projects https://github.com/slorion/nlight io,parser,csv,delimited,transaction,reactive,tree - Added multi-targeting support for .NET 4.6 + Increased compatibility with newer .NET versions. Updated Reactive dependency to 5.0. NLight targets .NET Standard 2.0 (.NET Framework 4.6.1+, .NET Core 2.0+). true C:\projects\oss\nlight\src\NLight.snk true en - 2.1.1.0 - 2.1.1.0 + 2.2.0.0 + 2.2.0.0 https://github.com/slorion/nlight/blob/master/LICENSE @@ -37,8 +37,7 @@ - - +