using System; using System.Collections.Generic; public class Test { public static void Value(List l) { l = new List(1); } public static void Reference(ref List l) { l = new List(1); } public static void Out(out List l) { l = new List(1); } public static void Main() { var l = new List(2); var m = new List(3); var n = new List(4); Value(l); Reference(ref m); Out(out n); Console.WriteLine("{0} 2", l.Capacity); Console.WriteLine("{0} 3", m.Capacity); Console.WriteLine("{0} 4", n.Capacity); } }