title: List to list conversion in C#
body: <p>Is this mapping correct? The list can have multiple rows</p>
  
  <p>I am very curious to know if say the list contains 3 rows, and all 3 rows will be mapped? Or do we need a looping?</p>
  
  <pre><code>public List&lt;Data&gt; DataDetails { get; set; }
  
  public static DataDetails ToDataConvert ( this Datadto data)
  {
  
   DataDetails = dto.DataDetails.Select(x =&gt; new Data()
                          {
                              Name = x.Name,
                              id = x.Id
                          })
                          .ToList()
  }
  </code></pre>