Search
Get Started
C
C#
•
4y ago
Dreams
String interpolation help
How can I get the
email
email
variable into this multiline string
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,010
Members
View on Discord
Was this page helpful?
Yes
No
D
Dreams
OP
•
12/1/22, 4:09 PM
I try to add
$
$
but it
's showing little errors
D
Dreams
OP
•
12/1/22, 4:14 PM
this looks alright
:
A
Angius
•
12/1/22, 4:20 PM
If you
're on
.NET 7 you can use raw string literals
A
Angius
•
12/1/22, 4:21 PM
With regular string literals
, you can escape
s by using
A
Angius
•
12/1/22, 4:21 PM
Same as escaping
"
"
is done with
""
""
D
Dreams
OP
•
12/1/22, 4:30 PM
Ohhh
D
Dreams
OP
•
12/1/22, 4:30 PM
let me try that
D
Dreams
OP
•
12/1/22, 4:32 PM
@Angius thank you i got it
{
{
{{
{{