Re: How to assign a block of text to a string in C#
From: Bob Grommes (bob_at_bobgrommes.com)
Date: 05/08/04
- Previous message: Bob Grommes: "Re: interface question"
- In reply to: Richard Frenkel: "How to assign a block of text to a string in C#"
- Next in thread: clintonG: "Re: How to assign a block of text to a string in C#"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 8 May 2004 13:34:07 -0700
No, there is no equivalent syntax in C#.
--Bob
"Richard Frenkel" <newsgroup@frenkelfamily.org> wrote in message
news:7e94523.0405081001.7392cceb@posting.google.com...
> I'd like to embed a bunch of text in a c# source file and assign it to
> a string.
> something like:
>
> ----------------------------
> string x = <<eof
>
> This is a bunch of text
> that is assigned to string x
> until the "eof" on a line
> by itself is encountered.
>
> eof
> -------------------------------
>
> of course anyone using Perl will recongize this very convenient
> syntax. Otherwise one has to go thru:
>
> x = 'blah blah';
> x += 'more blah blah";
> etc which is tedious. Just adding all the quotes is tedious. And if
> there are quotes in the text block it's even MORE tedious, and tedium
> is something I don't care for as a programer. So is there a way to do
> this in the C# compiler?
- Previous message: Bob Grommes: "Re: interface question"
- In reply to: Richard Frenkel: "How to assign a block of text to a string in C#"
- Next in thread: clintonG: "Re: How to assign a block of text to a string in C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|