I expected that there is no something wrong but VS2010 gives error.
string s= @"somet"hing";
I expected that there is no something wrong but VS2010 gives error.
string s= @"somet"hing";
You need to double-up quotation marks within an @
string.
string s = @"somet""hing";
Otherwise how would it know which quotes were escapes and which were the end markers?
Refer to the MSDN string page.