title: LINQ check string property for NULL in generating a ToList()
body: <p>I have this Linq statement which builds a list successfully if property isn't NULL</p>
  
  <pre><code> results.AddRange(m_CTS.Entity.Where(x =&gt; x.Property.Contains(search)).ToList());
  </code></pre>
  
  <p>However, if x.property is null then it errors, so I would like to try to check it for null and if it isnt null, proceed in building the list. </p>
  
  <p>I have tried, </p>
  
  <pre><code> results.AddRange(m_CTS.Entity.Where(x =&gt; x.Property == null ? "" : x.Property.Contains(search)).ToList());
  </code></pre>
  
  <p>But this also errors, what am I doing wrong?</p>
  
  <p>Thanks in Advance</p>