G
Guest
Hello All,
I have a string of around 150 characters.
string test = "asjhdkashdkjahsdjkhaskjdhaskjdhasjdhasd........."; //(upto
150 characters)
I want to split the above string into multiple lines in IDE while declaring
it so that it is more readable. How can I do that?
I do not want to concatenate using "+" nor do I want to use stringbuilder
object. I tried using @. If I use @ followed by the string, compiler is
inserting special characters like \t,\n. I think that I can StringBuilder
object but are there any other alternatives?
My goal is to be able to declare string like this without using "+" or
stringbuilder spread accross in multiple lines in IDE.
string test = "asjhdajkshdjkashdajksdhajskdhasd
sdfsjkdhfkjsdhfsjkdhfskjdfhskdjfhsd
sdfhsdjkfhsjdkfhsdjkfhsdjkfhsdkjfhs";
I hope I made sense as to what I want to achieve....
Thank you.
I have a string of around 150 characters.
string test = "asjhdkashdkjahsdjkhaskjdhaskjdhasjdhasd........."; //(upto
150 characters)
I want to split the above string into multiple lines in IDE while declaring
it so that it is more readable. How can I do that?
I do not want to concatenate using "+" nor do I want to use stringbuilder
object. I tried using @. If I use @ followed by the string, compiler is
inserting special characters like \t,\n. I think that I can StringBuilder
object but are there any other alternatives?
My goal is to be able to declare string like this without using "+" or
stringbuilder spread accross in multiple lines in IDE.
string test = "asjhdajkshdjkashdajksdhajskdhasd
sdfsjkdhfkjsdhfsjkdhfskjdfhskdjfhsd
sdfhsdjkfhsjdkfhsdjkfhsdjkfhsdkjfhs";
I hope I made sense as to what I want to achieve....
Thank you.