Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String literal in multiple lines in C#
Message
From
22/04/2007 06:02:09
 
 
To
22/04/2007 05:40:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01218662
Message ID:
01218665
Views:
14
>Use @ prefix.

@ prefix adds line feeds to strings.
So result string is different and cannot be used in case label.

>PS: In most cases it's easier to use StringBuilder.

I need to use string literal in case label as shown in example.
case label cannot be expression so using StringBuilder is not possible.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform