It is possible to create very long outputs with fairly small format strings. This can lead to performance problems and possibly even memory errors.
For example, string.Format("{0,9999999}",0) creates a string that consumes 20 MB of RAM. You can repeat this pattern to increase the size of the output further.
CodesInChaos
source share