CS1023
error This string is longer than max characters.
#What it means
A single string literal is longer than the maximum the language allows (the message gives the limit, currently 4,096 characters).
#Typical cause
- A very long text, such as a big list of values, pasted into one string.
#How to fix it
- Split the text into several shorter strings and join them with
+where you need them. - For data, consider an input or an array built from several shorter strings.
#Example
Producing it needs a string literal more than 40,960 characters long, far too long to show on this page.