title: Automapper and multidimensional list
body: <p>I want to map <code>List&lt;List&lt;Item&gt;&gt;</code> into <code>List&lt;List&lt;Item2&gt;&gt;</code> but I can't make it working. Is there a way to do it using simple configuration or does such case require writing custom converter? Here is my case (available also on <a href="https://dotnetfiddle.net/B16CaF" rel="nofollow noreferrer">dotnetfiddle</a>):</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using AutoMapper;
  using Newtonsoft.Json;
  
  public class Program
  {
      public static void Main()
      {
          var configuration = new MapperConfiguration(cfg =&gt;
          {
              cfg.CreateMap&lt;ItemCollection, List&lt;List&lt;Item2&gt;&gt;&gt;();
              cfg.CreateMap&lt;List&lt;List&lt;Item&gt;&gt;, List&lt;List&lt;Item2&gt;&gt;&gt;();
              cfg.CreateMap&lt;List&lt;Item&gt;, List&lt;Item2&gt;&gt;();
              cfg.CreateMap&lt;Item, Item2&gt;().ForMember(x =&gt; x.Name, opt =&gt; opt.MapFrom(x =&gt; x.Name));
          });
          var mapper = new Mapper(configuration);
          
          var collection = new ItemCollection();
          collection.Add(new List&lt;Item&gt;(){new Item{Name = &quot;item&quot;}});
          
          var dest = mapper.Map&lt;List&lt;List&lt;Item2&gt;&gt;&gt;(collection);
          Console.WriteLine(JsonConvert.SerializeObject(dest));
      }
  }
  
  public class ItemCollection : List&lt;List&lt;Item&gt;&gt;
  {
  }
  
  public class Item
  {
      public string Name { get; set; }
  }
  
  public class Item2
  {
      public string Name { get; set; }
  }
  </code></pre>
  <p>As a result I'd like to see <code>[[{Name = &quot;item&quot;}]]</code> in output window.</p>