c# - Transform String Folder Path -


this question has answer here:

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

Popular posts from this blog

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -