I have bellow function which returns a list of dynamic object
public List<dynamic> getlist()
{
List<dynamic> d = new List<dynamic>();
d.Add(new { Name = "A", Age = 12 });
d.Add(new { Name = "B", Age = 10 });
d.Add(new { Name = "C", Age = 15 });
d.Add(new { Name = "D", Age = 18 });
d.Add(new { Name = "E", Age = 17 });
return d;
}
and also have a class
public class testclass
{
public string letter { get; set; }
public Int64 frequency { get; set; }
}
I use AutoMapper.5.2.0 .I want to map the dynamic list with the list of testclass class . can anybody give an example how to do this?