I have a class Animal, and its subclass Dog. I have a List and I want to add the contents of some List<
Animal
Dog
List
List<
I believe this depends on which version of .Net you're using. I could be mistaken, but in .Net 4 I think you can do
animalList.AddRange(dogList);
Otherwise in .Net 3.5, you can do
animalList.AddRange(dogList.Select(x => (Animal)x));