I want to use
XmlReader.Create(aString);
to read XML. but there are many "\" in this aString, which cause an error:
Illegal characters in path.
So I want to replace all "\"
with ""
.
I've tried:
aString.Replace("\", "");
aString.Replace("\\", "");
aString.Replace(@"\", "");
aString.Replace(@"\", string.Empty);
None of them works.