Assigning child object to the base is possible.
base1 b1 = new child1();
But if we do the same with the collection it is not possible, Why?
List<base1> libase = new List<child1>();
Any reference having this explanation is very helpful, please share
public class base1
{
}
public class child1 : base1
{
}
static void Main(string[] args)
{
base1 b1 = new child1();
List<base1> libase = new List<child1>();
Console.Read();
}