c# - Transform String Folder Path -
this question has answer here:
- full path double backslash (c#) 4 answers
i'm doing c# project school.
i need extract .zip file have problem.
i path file going extract folderbrowserdialog , ok, folderbrowserdialog gives me "c:\users\zé eduardo\music" , need "c:\\users\\zé eduardo\\music".
how can transform "\" "\\"?
well, answer question asking wrong question,
var transformedstring = badstring.replace(@"\", @"\\"); the @ in literal means, verbatim string normal escaping rules don't apply. effectively, don't need escape escape character.
Comments
Post a Comment