adding quotation marks to a string?

  • Thread starter Thread starter vince
  • Start date Start date
V

vince

need to create a string with embedded quotation marks,
like

string str1 = " they said "go away" ";

How can this be done?

Thanks,

vince
 
string str1 = " they said \"go away\" ";

or

string str1 = @" they said ""go away"" ";

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top