I'd like to replace the character " by a space in a string in C#. But I have an issue when writing the function :
myString.Replace("""," ")
The first argument seems to be an issue. Any idea
Escape it:
myString.Replace("\""," ")
Use the overload that accepts chars instead of strings
myString.Replace('"', ' ');
You need to escape the character by putting \ before it:
myString=myString.Replace("\""," ");
or user this:
myString=myString.Replace('"',' ');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With