Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# line continuation
Message
From
24/03/2009 14:38:33
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
24/03/2009 13:47:23
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01387717
Message ID:
01391125
Views:
46
>>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform