Skip to content
Discussion options

You must be logged in to vote

See String Interpolation in C# 10 and .NET 6 for an in-depth write-out about that topic.

Also note that i.ToString creates a string (so an allocation), that is avoided with the plain string interpolation.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zxcvqwerasdf
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zxcvqwerasdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants