This project is read-only.

Mapping IPagedList<A> to IPagedList<B>

May 7, 2013 at 5:10 PM
Hi. It's my first usage of Emit Mapper. I have this objects:
public class A { /* some properties */ }
public class B { /* some properties same as A */ }
And I tried to map a IPagedList<A> to IPagedList<B> as below:
IPagedList<A> source = GetListFromSomewhere();
var mapper = ObjectMapperManager
    .GetMapper<IPagedList<A>, IPagedList<B>>();
IPagedList<B> target = mapper.Map(source);
But the target is always null. Where am I wrong? What is the problem in my code? Have you any idea please?