title: How to use automapper from string to List of Strings
body: <p>Using automapper how do we convert a string separated with spaces to a List  ?</p>
  
  <p>Data:</p>
  
  <pre><code>foo1 foo2 foo3 foo4
  </code></pre>
  
  <p>Class:</p>
  
  <pre><code>public class myFooList
  {
     public int myId;
     public List&lt;string&gt; myListOfStrings;
  }
  </code></pre>
  
  <p>Using automapper defaults.</p>
  
  <pre><code>Mapper.CreateMap&lt;data,myFooList&gt;()        
      .ForMember(d=&gt;d.mListOfStrings, s=&gt;s.MapFrom(s=&gt;s.Data));
  </code></pre>
  
  <p>I get data in the form of one line per character.</p>
  
  <p>Ex:</p>
  
  <pre><code>f
  o
  o
  1
  
  f
  o
  o
  2
  </code></pre>
  
  <p>etc..etc..</p>