Compiler limit exceeded: Line cannot exceed 2046 characters

I have a long array, how can I get by this error?
LVL 1
JPERKS1985Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Gary DavisConnect With a Mentor Dir Internet SvcsCommented:
Break the line like this (C# version):

string longString = "some text some text some text some text " +
"some text some text some text some text " +
"some text some text some text some text " +
"some text some text some text some text ";


Gary Davis
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.