I\'m trying to pass A list of DerivedClass to a function that takes a list of BaseClass, but I get the error:
DerivedClass
BaseClass
cannot convert from
If you could write
List bcl = new List();
you could call
var instance = new AnotherClassInheritingFromBaseClass(); bc1.Add(instance);
Adding an instance which is not a DerivedClass to the list.