Q:

Select from list 2 fields and join them as string

I have class Product 
public class Product
{
   public string Name{get;set;}
   public int Quantity{get;set;}
   // and other
}

After some operation i get List<Product>. 
How can i create string in format productName1(productQuantity1), productName2(productQuantity2), ... from that list? 
I supposed to use String.Join but can't get how to use it with some dynamic object or KeyValuePair (If i use Select to get such objects).

A:

String.Join(", ", list.Select(p => String.Format("{0}({1})", p.Name, p.Quantity)))

