Micki-Weaver
asked on
" in a string??
how do I put "'s in a string??
so
string s = @"I would like to say "HI", thanks";
so
string s = @"I would like to say "HI", thanks";
string s = @"I would like to say ""HI"", thanks";
try this
string s = @"I would like to say \"HI\", thanks";
string s = @"I would like to say \"HI\", thanks";
ASKER
nope
??
string s = @"I would like to say \"HI\", thanks";
MessageBox.Show(str); // should get what you want
string s = @"I would like to say \"HI\", thanks";
MessageBox.Show(str); // should get what you want
??
string s = @"I would like to say \"HI\", thanks";
MessageBox.Show(str); // should get what you want
string s = @"I would like to say \"HI\", thanks";
MessageBox.Show(str); // should get what you want
ASKER
thats what I thought but no, if you can compile that send me the exe
ASKER
i got around it for now with ulgy code,
string s = "say"+(char)34+@"HI"+(char )34+@" or not";
string s = "say"+(char)34+@"HI"+(char
ASKER
I would still like to know if I can do it clean
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nice thanks