Skip to content

Prefer strongly-typed StringBuilder overload in PipelineStepDiagnostics#7775

Merged
johnsimons merged 1 commit into
masterfrom
john/net11-prep
May 27, 2026
Merged

Prefer strongly-typed StringBuilder overload in PipelineStepDiagnostics#7775
johnsimons merged 1 commit into
masterfrom
john/net11-prep

Conversation

@johnsimons
Copy link
Copy Markdown
Member

This causes a warning when compiled using .NET 11 Preview 4.

warning CA1830: Prefer strongly-typed StringBuilder overload (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1830)

Identified in https://github.com/Particular/NServiceBus/pull/7766/changes#r3307099146

This causes a warning when compiled using .NET 11 Preview 4.
@johnsimons johnsimons requested a review from bording May 27, 2026 00:16
@johnsimons johnsimons self-assigned this May 27, 2026
@johnsimons johnsimons enabled auto-merge May 27, 2026 00:16
@johnsimons johnsimons merged commit 7a70480 into master May 27, 2026
5 of 6 checks passed
@johnsimons johnsimons deleted the john/net11-prep branch May 27, 2026 00:40
@danielmarbach danielmarbach changed the title Fix string append method in PipelineStepDiagnostics CA1830: Prefer strongly-typed StringBuilder overload in PipelineStepDiagnostics May 27, 2026
@danielmarbach danielmarbach added this to the 10.2.1 milestone May 27, 2026
@danielmarbach danielmarbach changed the title CA1830: Prefer strongly-typed StringBuilder overload in PipelineStepDiagnostics Prefer strongly-typed StringBuilder overload in PipelineStepDiagnostics May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants