Skip to content

Update ConvertStringArrayToString to .NET 11 - #2386

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/72486-csharp-convert-string-array-to-string
Nov 19, 2026
Merged

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

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the ConvertStringArrayToString sample to net11.0 with BenchmarkDotNet 0.15.8, xunit 2.9.3, xunit.runner.visualstudio 4.0.1, Microsoft.NET.Test.Sdk 18.12.0 and coverlet.collector 10.1.0, adds the separator and StringBuilder-seed Aggregate methods the article prints, rebuilds the benchmark as one class with [InProcess], [MemoryDiagnoser] and [Params(1_000, 10_000)] where every method returns its string, runs it through BenchmarkSwitcher, and brings the tests to ten, covering the separator, the seed, empty arrays and ToString() on the array.

Move the three projects to net11.0 with BenchmarkDotNet 0.15.8, xunit 2.9.3,
xunit.runner.visualstudio 4.0.1, Microsoft.NET.Test.Sdk 18.12.0 and
coverlet.collector 10.1.0. Add the separator and StringBuilder-seed Aggregate
methods, rebuild the benchmark with [InProcess], [MemoryDiagnoser] and
[Params(1_000, 10_000)] so every method returns its string, run it through
BenchmarkSwitcher, and add tests for the separator, the seed, empty arrays and
ToString() on the array.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 0256597 into CodeMazeBlog:main Nov 19, 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