C# doesn't support "here documents?"

It looks like C# doesn't support here documents???

(Embedded text like one can do in other programming languages like Perl and Ruby.)

    http://en.wikipedia.org/wiki/Here_document

Is the best workaround perhaps to store the text in files and read into memory at run-time?

What is the best practice for C# since it doesn't support here documents?
LVL 2
ZuZuPetalsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lazyberezovskyCommented:
No, C# does not support heredocs.
You can use @ - verbatim string literal. It does not apply any interpretations to characters until the next quote character is reached. So, you can create text with symbols like \
E.g. @"Here is
some text
with \
"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RyanAndresCommented:
Are you trying to execute msdos command line statements within your app?
0
ZuZuPetalsAuthor Commented:
No MS Dos, just embedded XML that I need to assemble and send via HTTP.<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.