Add a literal for Invariant culture string interpolation #7974
Unanswered
satikcz
asked this question in
Language Ideas
Replies: 1 comment 1 reply
-
config.Add(FormattableString.Invariant($"{entry.Key}={entry.Value}")); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Add a literal for Invariant culture string interpolation so writing interpolated string with invariant culture is as straightforward as writing interpolated string with current culture.
Something like
config.Add($I"{entry.Key}={entry.Value}")
In the sample I is used as literal that denotes invariant culture interpolated string but that can be literally any available character.
Beta Was this translation helpful? Give feedback.
All reactions