Quick way to initialize list of numbered strings?

c#, initialization, list, numbers, string

Solution

You could use LINQ:

Enumerable.Range(1, 10).Select(i => "This is string number " + i).ToList();

Problem

How can I quickly create a string list with numbered strings? Right now I'm using: ``` var str = new List<string>(); for (int i = 1; i <= 10; i++) { str.Add("This is string number " + i); } ``` This works, however I wonder if there's a quicker way to initialize such a string list, maybe in one or two lines?

Original source