Alex Rivera | Logout

How to include quotes in a string

Asked 2010-08-11T12:10:04.180
105

I have a string "I want to learn "c#"". How can I include the quotes before and after c#?

Edit
Report

1 Answer

204

Escape them with backslashes.

"I want to learn \"C#\""
answered 2010-08-11T12:11:19.823

Your Answer