Sunday, 1 May 2016

c# - Double quotes inside string HTML




I want to store this:



m



in a string. How do I do this?



Tried: @"m";



Tried: @"m";



Please help!


Answer




use single quotes, instead.



var html = "m";


or double the quotes in a literal string



var html = @"m";



or escape the quote characters with the backslash character



var html = "m";

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...