Skip to content

DataTableOverview: .NET 10 and the article's order - #2322

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84760-csharp-datatable-class
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84760-csharp-datatable-class

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the DataTable sample to net10.0 with current xUnit 2 test packages, reorders Program.cs so the row is added before the primary key as the article now shows, adds the PrintTable, GetTickersBelow, AddPrimaryKey and AddNewRowFromValues helpers, fixes the second carrot row in the CSV, null-checks the TextFieldParser reads, and adds tests for the new helpers, the primary key on empty cells, the duplicate key and the numeric filter on string CSV columns.

…rint and typed-query helpers

Both projects target net10.0 and the test packages move to xunit 2.9.3, xunit.runner.visualstudio 4.0.1, Microsoft.NET.Test.Sdk 18.11.0 and coverlet.collector 10.1.0. Program.cs adds the row before the primary key, as the article does, and gains AddPrimaryKey, AddNewRowFromValues, PrintTable and GetTickersBelow. The second carrot row in the CSV gets the right Sales value, ReadFields() results are null-checked, and seven tests cover the new code and the two failure cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant