List Collection object as Method Parameter
问题 Can anyone explain how the memory allocation is done while invoking a method having list collection as parameter. Since the code snippet below though apparently seems to result same but it is not resulting same. So I would like to know the difference in both the method call in terms of memory allocation. using System; using System.Collections.Generic; namespace ListSample { class ListSampleClass { static void Main(string[] args) { List<int> i = new List<int>(); i.Add(10); i.Add(15);