Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String with double quotes - how to put in test
Message
 
 
À
02/05/2019 09:06:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01668335
Message ID:
01668365
Vues:
41
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform