Skip to content

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

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84760-csharp-datatable-class
Oct 28, 2026
Merged

vladimir-pecanac-main merged 2 commits 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.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 3b742cd into CodeMazeBlog:main Oct 28, 2026
4 checks passed
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