Question: what is the difference between list and arraylist in c#?
Answer: List<T> is a generic class. It supports storing values of a specific type without casting to or from object (which would have incurred boxing/unboxing overhead when T is a value type in the ArrayList case). ArrayList simply stores object references. ... ArrayList belongs to the days that C# didn't have generics.