The list takes a generic type as an argument to the template. So, you really will have a list of cars if you do this:
List<car> list = new List<car>();
While:
List<object> objlist = new List<object>();
May contain links to anything. The problem is that these links are omitted to objects, and you cannot use their members and functions until you remake them to the desired object. For example, if you keep cars in objlist, you would need:
((car)objlist[0]).GetMaker();
To call the GetMaker function for cars, a list you could make:
list[0].GetMaker();
This assumes that you have at least one car / object in the list.
source share