Question: what is difference between arraylist and generic list?
Answer: ArrayList simply stores object references. As a generic collection, List<T> implements the generic IEnumerable<T> interface and can be used easily in LINQ (without requiring any Cast or OfType call). ArrayList belongs to the days that C# didn't have generics. It's deprecated in favor of List<T> .