Replacing all the '\' chars to '/' with C#

后端 未结 7 1933
春和景丽
春和景丽 2020-12-11 02:16

How can I replace all the \'\\\' chars in a string into \'/\' with C#? For example, I need to make @\"c:/abc/def\" from @\"c:\\abc\\def\".

7条回答
提交回复
热议问题