Hi,
I have an array of an anonymous type declared as:
var list = new[]
{
new {Name = "A", Age = 10},
new {Name = "B", Age = 15}
}
Now list inherits from type Array, which implements IEnumerable. Why does the following fail:
Convert.ChangeType(list, typeof(IEnumerable));
This also fails:
Convert.ChangeType(list, typeof(Array));
Kind regards,