Subscribe Us

LightBlog

Tuesday, 13 April 2021

How to Replace “\\” with “\” in a string in C#

Answer:-

 var newstring = @"a\\b".Replace(@"\\",@"\");

No comments:

Post a Comment