Skip to content

StringFormattableString: update to .NET 11 and fix the benchmark and culture handling - #2426

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/94972-csharp-difference-between-string-formattablestring-iformattable
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/94972-csharp-difference-between-string-formattablestring-iformattable

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets both projects to net11.0 and updates BenchmarkDotNet to 0.15.8 (with InProcess on the benchmark class), MSTest to 4.5.3, Microsoft.NET.Test.Sdk to 18.12.0 and coverlet.collector to 10.1.0. Adds a third benchmark that creates a FormattableString and then formats it, so the comparison with the plain string is fair, and fixes the ArgumentsSource return type. TemperatureFormat now passes its IFormatProvider to string.Create, its test formats with the invariant culture, the swapped ArgumentCount assert is fixed, and three new tests cover culture formatting, FormattableStringFactory.Create and the culture flowing into an IFormattable argument.

…ss, MSTest 4.5.3, create-and-format benchmark, culture-aware TemperatureFormat and culture tests
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