title: LINQ error invalid initializer member declarator
body: <p>I'm a fairly junior C# developer so excuse me if this is trivial, but I am coming up with this error "invalid initializer member declarator" at the line of code I indicate below.</p>
  
  <p>Can someone explain what this means and how do I work around/achieve this result? All of my data annotations are already applied once in PODetail, which is why I didn't want to repeat the properties here as well.</p>
  
  <pre><code>public class PODetailsListViewModel : IViewModelList&lt;PODetail, PODetailsListViewModel&gt;, IEntity
      {
          public int Id { get; set; }
  
          public string EntityDescription
          {
              get
              { return this.Id.ToString(); }
          }
  
          public PODetail PODetail { get; set; }
  
  
          public IEnumerable&lt;PODetailsListViewModel&gt; ConvertClassToViewModel(IEnumerable&lt;PODetail&gt; poDetails)
          {
              IEnumerable&lt;PODetailsListViewModel&gt; contactGrid =
                  from l in poDetails.ToList()
                  select new PODetailsListViewModel()
                  {
                      Id = l.Id,
                      PODetail.POHeaderId = l.POHeaderId, &lt;===== ERROR on this Line
                      ....
                  };
  
              return contactGrid;
          }
  </code></pre>