title: Linq Select New List Property Null Check
body: <p>I have a below LINQ query :</p>
  
  <pre><code>var productTypes = from ProductDto e in Product
                              select new 
                              {
                                  Id = e.Product.ID, 
                                  Name = e.Product.name 
                              };
  </code></pre>
  
  <p>In the above LINQ query the e.Product may be <code>null</code>.But I am not getting the way to find out.</p>
  
  <p>Can anyone help me out ? I want to assign <code>null</code> in productTypes variable if e.Product is <code>null</code>.</p>