Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String with double quotes - how to put in test
Message
 
 
To
02/05/2019 09:06:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01668335
Message ID:
01668365
Views:
40
>You need double the double quotes in string. Check verbatim string in C# documentation.
>
>Wrong:
>
>  string something = @"Hello "Naomi"";
>
>
>Right:
>
>  string something = @"Hello ""Naomi""";
>
>
>PS: Escaping wouldn't work in a verbatim string.
>If it were VB.Net then you could simply surround your text with tags.

Hi Cetin,

I was hoping for some TEXT/ENDTEXT feature. I've been testing JSON output and so I needed to use the strings with double quotes. First one I manually updated, second I updated through SQL Server :) I decided that 2 tests are enough :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform