c# handle double quotes in string

This stuff is really simple and I was almost convinced that I should not be writing about this. But silly me that today I made a mistake when defining a string with double quotes and then I thought Oh well! lets write about this.


Ok Lets see how do you define a Double quotes in a String.

Below is an example showing how this is done.
[geshi lang=”csharp” nums=”1″ target=”_self” ]

As you see that in a string you will need 2 Double quotes to make a quote a valid char.

You can also do something stated below
[geshi lang=”csharp” nums=”1″ target=”_self” ]

Lets see an example with multiline string

[geshi lang=”csharp” nums=”1″ target=”_self” ]


I hope this helps






Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.