Skip to content

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

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/61156-csharp-convert-char-array-to-string
Open

vladimir-pecanac-main wants to merge 1 commit 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.
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