Add CompositeFormat class reference to composite formatting docs#53686
Draft
Copilot wants to merge 3 commits into
Draft
Add CompositeFormat class reference to composite formatting docs#53686Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
… docs Agent-Logs-Url: https://github.com/dotnet/docs/sessions/dd16e561-6b82-4867-8a98-20e6d2548480 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
… passive voice Agent-Logs-Url: https://github.com/dotnet/docs/sessions/dd16e561-6b82-4867-8a98-20e6d2548480 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update documentation to mention CompositeFormat class
Add CompositeFormat class reference to composite formatting docs
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The composite formatting article was missing any mention of
System.Text.CompositeFormat(.NET 8+), which pre-parses format strings to eliminate repeated runtime parsing overhead in hot paths.Changes
CompositeFormat.Parse()works and why caching the result as astatic readonly/Shared ReadOnlyfield mattersString.FormatandStringBuilder.AppendFormatCompositeFormatusage<xref:System.Text.CompositeFormat>and CA1863 rule linkExample (C#)