Click here to Skip to main content
15,922,533 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.

 
General\r\n Pin
jofli2-Dec-09 23:20
jofli2-Dec-09 23:20 
GeneralRe: \r\n Pin
Thomas Weller3-Dec-09 3:40
Thomas Weller3-Dec-09 3:40 
GeneralRe: \r\n Pin
Ian Shlasko3-Dec-09 4:14
Ian Shlasko3-Dec-09 4:14 
GeneralRe: \r\n Pin
dan!sh 3-Dec-09 5:02
professional dan!sh 3-Dec-09 5:02 
GeneralRe: \r\n Pin
Ian Shlasko3-Dec-09 5:28
Ian Shlasko3-Dec-09 5:28 
GeneralRe: \r\n Pin
PIEBALDconsult3-Dec-09 5:33
mvePIEBALDconsult3-Dec-09 5:33 
GeneralRe: \r\n Pin
Ian Shlasko3-Dec-09 5:43
Ian Shlasko3-Dec-09 5:43 
GeneralRe: \r\n Pin
PIEBALDconsult4-Dec-09 3:41
mvePIEBALDconsult4-Dec-09 3:41 
GeneralRe: \r\n Pin
Ian Shlasko4-Dec-09 4:52
Ian Shlasko4-Dec-09 4:52 
GeneralRe: \r\n Pin
NormDroid7-Dec-09 2:38
professionalNormDroid7-Dec-09 2:38 
GeneralRe: \r\n Pin
dan!sh 3-Dec-09 6:09
professional dan!sh 3-Dec-09 6:09 
GeneralRe: \r\n Pin
OriginalGriff3-Dec-09 6:14
mveOriginalGriff3-Dec-09 6:14 
GeneralRe: \r\n Pin
Ian Shlasko3-Dec-09 6:20
Ian Shlasko3-Dec-09 6:20 
GeneralRe: \r\n Pin
peterchen11-Dec-09 2:48
peterchen11-Dec-09 2:48 
GeneralRe: \r\n Pin
Ian Shlasko11-Dec-09 2:55
Ian Shlasko11-Dec-09 2:55 
GeneralRe: \r\n Pin
Luc Pattyn11-Dec-09 3:57
sitebuilderLuc Pattyn11-Dec-09 3:57 
GeneralRe: \r\n Pin
PIEBALDconsult3-Dec-09 5:28
mvePIEBALDconsult3-Dec-09 5:28 
GeneralRe: \r\n Pin
Luc Pattyn3-Dec-09 5:49
sitebuilderLuc Pattyn3-Dec-09 5:49 
GeneralRe: \r\n Pin
jofli4-Dec-09 1:07
jofli4-Dec-09 1:07 
GeneralRe: \r\n Pin
David Skelly3-Dec-09 6:07
David Skelly3-Dec-09 6:07 
My guess is that this is an artifact of Reflector, not of the original coder.

I do know that in VB, the Chr() function actually does use Convert.ToChar internally so my guess is that C# does the same. Who knows what Environment.NewLine does internally. I assume that the compiler has in-lined the Chr function, and Reflector has simply given you back what the compiler produced. Anyone with too much free time on their hands and a handy copy of Reflector is invited to experiment to find out what the compiler does with this sort of thing.

Reflector is showing you what the code looks like after the compiler has munged it around and played merry havoc with your beautiful code.
GeneralRe: \r\n Pin
David Skelly3-Dec-09 6:09
David Skelly3-Dec-09 6:09 
GeneralRe: \r\n Pin
harold aptroot3-Dec-09 6:22
harold aptroot3-Dec-09 6:22 
GeneralRe: \r\n Pin
David Skelly3-Dec-09 22:45
David Skelly3-Dec-09 22:45 
GeneralRe: \r\n Pin
jofli3-Dec-09 23:37
jofli3-Dec-09 23:37 
GeneralRe: \r\n Pin
David Skelly4-Dec-09 0:13
David Skelly4-Dec-09 0:13 

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.