Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# line continuation
Message
De
24/03/2009 14:38:33
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
24/03/2009 13:47:23
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01387717
Message ID:
01391125
Vues:
47
>>For some reason I can't find this on google... I must be searching for the wrong term.
>>
>>How do I make this work:
>>
>>string myText = "Blah blah blah"
>>                             "blah blah"
>>                             "blah"
>>
>
>you can also do this to a string
>
>StringBuilder myText = new StringBuilder("Blah blah blah\n blah blah\n\n blahblah");
>
>The "\n" is return linefeed in c#

I didn't want a line break in my string... I wanted a line break in my declaration of a string to make it easier to maintain.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform