Double vs single quotes
Is there a specific time when I should use “” vs ”? I’ve been using single quotes most of the time because it’s easier to type but I’m not sure if I should. e.g. get ‘user/new’ vs. get “user/new” 7 Answers 7
Is there a specific time when I should use “” vs ”? I’ve been using single quotes most of the time because it’s easier to type but I’m not sure if I should. e.g. get ‘user/new’ vs. get “user/new” 7 Answers 7
I have variable like: string title = string.empty; My need is that whatever string is passed to it I have to display the content inside a div with in a double quotes. So I have written something like: … … <div>”+ title +@”</div> … … But how can I add the double quotes here? So … Read more
Double quotes can be escaped like this: string test = @”He said to me, “”Hello World””. How are you?”; But this involves adding character ” to the string. Is there a C# function or other method to escape double quotes so that no changing in string is required? 8 Answers 8
In .NET, what is the difference between String.Empty and “”, and are they interchangable, or is there some underlying reference or Localization issues around equality that String.Empty will ensure are not a problem? 18 Answers 18