c# create a generic list of objects code example Example: c# new list object var intList = new List<int>();