title: Automapper 6 CustomList<TSource> to CustomList2<TDest> not mapping items
body: <p>I have have two <code>PagedList&lt;T&gt;</code> types. <code>Data.PagedList&lt;T&gt;</code> implements <code>IList&lt;T&gt;</code>, <code>ViewModels.PagedList&lt;T&gt;</code> inherits <code>List&lt;T&gt;</code>. I'm trying to map from <code>Data.PagedList&lt;Comments&gt;</code> to <code>ViewModels.PagedList&lt;CommentsVM&gt;</code>. I have an open generic mapping for the two PagedLists and a mapping for Comments -> CommentsVM, but after mapping, the <code>ViewModels.PagedList&lt;CommentsVM&gt;</code> has all of its properties set, but it contains 0 items.</p>
  
  <p><code>Data.PagedList&lt;T&gt;</code>:</p>
  
  <pre><code>public class PagedList&lt;T&gt; : IList&lt;T&gt;
  {
      private IList&lt;T&gt; _innerList;
      private int _totalCount;
      private int _pageSize;
      private int _pageNumber;
  
      public PagedList()
      {
          _innerList = new List&lt;T&gt;();
      }
  
      public PagedList(IList&lt;T&gt; existingList)
      {
          _innerList = existingList;
      }
  
      public int TotalCount
      {
          get { return _totalCount; }
          set { _totalCount = value; }
      }
  
      public int PageSize
      {
          get { return _pageSize; }
          set { _pageSize = value; }
      }
  
      public int PageNumber
      {
          get { return _pageNumber; }
          set { _pageNumber = value; }
      }
  
      //IList implementation...
  }
  </code></pre>
  
  <p><code>ViewModels.PagedList&lt;T&gt;</code>:</p>
  
  <pre><code>public class PagedList&lt;T&gt; : List&lt;T&gt;
  {
      public PagedList()
      {
      }
  
      public PagedList(IEnumerable&lt;T&gt; collection) : base(collection) { }
  
      public int PageNumber { get; set; }
  
      public int PageSize { get; set; }
  
      public int TotalCount { get; set; }
  }
  </code></pre>
  
  <p>Mapping Config:</p>
  
  <pre><code>CreateMap(typeof(Data.PagedList&lt;&gt;), typeof(ViewModels.PagedList&lt;&gt;));
  CreateMap&lt;Comments, CommentsVM&gt;();
  </code></pre>
  
  <p>Mapping:</p>
  
  <pre><code>{
      IMapper mapper = MapperConfig.EntityWebMapper;
  
      Data.PagedList&lt;Comments&gt; comments = Repository.GetAccountComments(accountID, pageNum, pageSize);
  
      var result = mapper.Map&lt;ViewModels.PagedList&lt;CommentsVM&gt;&gt;(comments);
  </code></pre>
  
  <p>At this point <code>PageNumber</code>, <code>PageSize</code>, and <code>TotalCount</code> are all set correctly  on <code>comments</code>, but it contains 0 items so I have to do this:</p>
  
  <pre><code>    foreach (var c in comments)
          result.Add(mapper.Map&lt;CommentsVM&gt;(c));
  
      return result;
  }
  </code></pre>
  
  <p>My expectation was since automapper can map List to List, it would be able to do the same here once I added the open generics mapping between PagedLists. Why isn't it mapping the list items automatically? Can it?</p>