using System.Collections.Generic;
public string Info {get;set;}
public int Quantity {get;set;}
public static void Main()
var list = new List<LineItem>{
new LineItem { Info = "two of these", Quantity = 2 },
new LineItem { Info = "one of these", Quantity = 1 }
var list2 = list.SelectMany(x => Enumerable.Repeat(x, x.Quantity));
foreach(var item in list2)
Console.WriteLine(item.Info + item.Quantity);
Console.WriteLine("Hello World");