I discovered that whenever I use this method string.Format(), it adds extra quotes and backslash to my variable value.
string value = string.Format("sample {0}", someText);
On VS Watch, I see this result:
"sample \"blah\""
In Text Visualizer, I get this:
sample "blah"
Can anyone tell me why I can't get this?
"sample blah"
Please note: I have a workaround already which is string.Replace("\"","")
but I just want to know where the extra quotes was added.
I'm 100% sure, in your context, sometext contains the extra quotes.
returns "sample blah"