Thursday, May 12, 2011

Removing double backslashes in C#


It adds the backslashes to indicate quotes in the middle of the string. The backslashes aren't actually there, the quotes are.
Remove the quotes like that:
myTestString.Replace("\"", string.Empty);

No comments:

Post a Comment