I want to generate 500 chars in an easy way without doing:
String range = "0123456789101112131415...";
I want to have an exact string of 500 chars.
How can I do that?
Enumerable.Range(0,500).Select( c => c.ToString());
does not help because
the number 123 is 3 chars not 1 and therein is the problem.
If you don’t care which characters then you could just use the String constructor:
This will give you a string with 500 “0”s. Or for 500 X’s: