There is @
operator that you place infornt of the string to allow special characters in string and there is \
. Well I am aware that with @
you can use reserved names for variables, but I am curious just about difference using these two operators with string.
Search on the web indicated that these two are the same but I still believe there has to be something different between @
and \
.
Code to test:
string _string0 = @"Just a ""qoute""";
string _string1 = "Just a \"qoute\"";
Console.WriteLine("{0} | {1}",_string0, _string1);
Question: what is the difference between @"Just a ""qoute""";
and "Just a \"qoute\"";
only regarding strings?
Edit: Question is already answered here.