Sunday 30 October 2016

c# - How to escape double quotes with string interpolation

I have this:



var s = $"my name is {model.Name}":



and I want the string to be:



"my name is "someone""



How can I do this?

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...