Skip to content

Char array to string: net10.0, working solution file, new tests and a benchmark - #2315

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/61156-csharp-convert-char-array-to-string
Oct 21, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/61156-csharp-convert-char-array-to-string

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

The solution file in strings-csharp/ConvertCharArray2String mapped project GUIDs that did not exist, so CI built nothing and ran no tests; it is regenerated with all three projects. Both projects move to net10.0 with MSTest 4.5.1, Microsoft.NET.Test.Sdk 18.11.0 and coverlet.collector 10.1.0, Program.cs uses top-level statements and adds the part-of-array, separator and single-char examples, five new tests cover them and the null-array behaviour, and a new BenchmarkDotNet 0.15.8 project compares the string constructor with string.Concat and string.Join, passing command-line args to the runner.

… benchmark project

The solution file mapped project GUIDs that did not exist, so CI built nothing and ran no tests. Regenerated it with all three projects. Both projects move to net10.0 with MSTest 4.5.1, Microsoft.NET.Test.Sdk 18.11.0 and coverlet.collector 10.1.0. Program.cs uses top-level statements and adds the part-of-array, separator and single-char examples. Five new tests cover them and the null-array behaviour. A BenchmarkDotNet 0.15.8 project compares the constructor, string.Concat and string.Join, and passes command-line args to the runner.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 3eb1afa into CodeMazeBlog:main Oct 21, 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