chokka
asked on
Declaring string variables in C#
I have a line of string variable which comes as like this
"abc","","def", ""
all the values has double quotes
string strline = " "abc","","def", "" "
I am sure, i need to add + sign to get the double quotes. I am just looking for best way to fix this. This is a very lengthy line.
"abc","","def", ""
all the values has double quotes
string strline = " "abc","","def", "" "
I am sure, i need to add + sign to get the double quotes. I am just looking for best way to fix this. This is a very lengthy line.
ASKER
I tested that string, it doesn't compile. I tested exact your line in the Visual Studio Environment.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you andy, it works
ASKER
Thanks
You need to double quote your quotes.
string strline = @" ""abc"","""",""def"","""" ";
string strline = @" ""abc"","""",""def"","""" ";
Open in new window