C# String creation (specified length)

.net, c#, string, unit-testing

Solution

You can use the `string` constructor that takes a `char` and an `int`. It creates a `string` instance with the `char` repeated the specified number of times.

Problem

Is there a succinct way (i.e. not a for loop) to create a string of a specified length? Doesn't matter what is in the string.

Original source