.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> Generics >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Inserting double quotes(") inside the string variable

Posted By:Pravin       Posted Date: March 24, 2012    Points: 40    Category: Generics    URL: http://www.dotnetspark.com  

Here i have posting a sample code for inserting double quotes(") inside the string variable, Below is the sample code:

//Declare a string variable

string strDoubleQuotes;

//Now we can insert a string with quotes

strDoubleQuotes = "This is sample string with double quotes \"MY CODE\" . "

// Output Will be like this

This is sample string with double quotes "MY CODE".


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend