I’m trying to set the value of a string to something that has a \ in it, but cannot do so as they say I have an unrecognized escape sequence. Is it possible to write \ in a string?
I’m trying to set the value of a string to something that has a
Share
You must escape it… if you are using a regular string you must double the slash
"hello\\world"or if you want it as a literal you can use@"hello\world"