That isn't a bug in C#. That is a escape sequence character available from the days of C.
string str;
str.Replace("\\\\","\\");
or
str.Replace(@"\\",@"\");
Since, you need to replace two double slashes to a single slash. Instead of typing extra slash every time you can place an "@" before your string.
Imagination is more important than knowledge..
[Albert Einstein]
Regards,
Chandu
My Blog