Click here to Skip to main content
15,879,535 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralInsert a quote into a @-quoted string literal [modified] Pin
PIEBALDconsult18-Jun-07 9:27
mvePIEBALDconsult18-Jun-07 9:27 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Mike Dimmick18-Jun-07 13:16
Mike Dimmick18-Jun-07 13:16 
GeneralRe: Insert a quote into a @-quoted string literal Pin
PIEBALDconsult18-Jun-07 16:15
mvePIEBALDconsult18-Jun-07 16:15 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Dario Solera20-Jun-07 9:55
Dario Solera20-Jun-07 9:55 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Daniel Grunwald21-Jun-07 8:51
Daniel Grunwald21-Jun-07 8:51 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Sylvester george19-Jun-07 23:14
Sylvester george19-Jun-07 23:14 
GeneralRe: Insert a quote into a @-quoted string literal Pin
DynV21-Jun-07 18:26
DynV21-Jun-07 18:26 
GeneralRe: Insert a quote into a @-quoted string literal Pin
Fuad Bin Omar22-Jun-07 17:15
Fuad Bin Omar22-Jun-07 17:15 
Placing an "@" does not produce any error for line break.

e.g. the following code would produce an error.

string x = "Blah blah blah"
+ Convert.Tochar(37) .ToString();

But the following would not

string x = @"Blah blah blah"
+ Convert.Tochar(37) .ToString();


(I am writing this without testing. So feel free to let me know if I am wrong.)

Generalat least he tried Pin
Eric Georgiades13-Jun-07 9:17
Eric Georgiades13-Jun-07 9:17 
GeneralRe: at least he tried Pin
- Pascal -13-Jun-07 9:32
- Pascal -13-Jun-07 9:32 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 9:42
Eric Georgiades13-Jun-07 9:42 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:03
Vasudevan Deepak Kumar19-Jun-07 21:03 
GeneralRe: at least he tried Pin
Kevin McFarlane20-Jun-07 5:04
Kevin McFarlane20-Jun-07 5:04 
GeneralRe: at least he tried Pin
Rob Grainger6-Aug-07 3:00
Rob Grainger6-Aug-07 3:00 
GeneralRe: at least he tried Pin
mav.northwind13-Jun-07 9:42
mav.northwind13-Jun-07 9:42 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 9:51
Eric Georgiades13-Jun-07 9:51 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:04
Vasudevan Deepak Kumar19-Jun-07 21:04 
GeneralRe: at least he tried Pin
dbrenth13-Jun-07 10:57
dbrenth13-Jun-07 10:57 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:05
Vasudevan Deepak Kumar19-Jun-07 21:05 
GeneralRe: at least he tried Pin
Giorgi Dalakishvili13-Jun-07 11:01
mentorGiorgi Dalakishvili13-Jun-07 11:01 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 13:17
Eric Georgiades13-Jun-07 13:17 
GeneralRe: at least he tried Pin
Vasudevan Deepak Kumar19-Jun-07 21:06
Vasudevan Deepak Kumar19-Jun-07 21:06 
GeneralRe: at least he tried Pin
Chris Meech13-Jun-07 12:12
Chris Meech13-Jun-07 12:12 
GeneralRe: at least he tried Pin
Eric Georgiades13-Jun-07 13:20
Eric Georgiades13-Jun-07 13:20 
GeneralRe: at least he tried Pin
_anil_13-Jun-07 15:16
_anil_13-Jun-07 15:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.