oqueeh
.net
All topics
>
C#
String interpolation escaping in C#
$
$"
{
someValue
}
:
{{
someValue
:
0.0
}}
"
-or-
$"
{{
someValue
}}
:
{
someValue
:
0.0
}
"
Notes:
Use multiple
$
to denote that braces (
{
and
}
)should be also the same multiple.
Know more:
$ - string interpolation - format string output - C# | Microsoft Learn