c# string.replace seriously broken with \

Posted by Blub on Stack Overflow See other posts from Stack Overflow or by Blub
Published on 2010-05-07T10:49:54Z Indexed on 2010/05/07 10:58 UTC
Read the original article Hit count: 204

Filed under:
|
|
|
"C://test/test/test.png" -> blub

    blub = blub.Replace(@"/", @"\");

result = "C:\\\\test\\test\\test.png"

how does that make sense? It replaces a single / with two \

?

© Stack Overflow or respective owner

Related posts about c#

Related posts about replace