title: How to do optional parameters in LINQ?
body: <p>Here is what I'm trying to do:</p>
  
  <pre><code>(Dc.DET_Cases.Where(c =&gt; c.ProductID == pl.ProductID 
                      &amp;&amp; oldTOR == false ? c.OldTOR == oldTOR : 
                      &amp;&amp; (productLineName.ToInt() == 0 || productLineName.ToInt() == c.ProductLineID)
                      &amp;&amp; (productCategory.ToInt() == 0 || productCategory.ToInt() == c.ProductCategoryID)
                      &amp;&amp; (issueType.ToInt() == 0 || issueType.ToInt() == c.IssueTypeID)
                      &amp;&amp; (issue.ToInt() == 0 || issue.ToInt() == c.IssueID)
                      )
                      .FirstOrDefault() != null)
  </code></pre>
  
  <p>This is the line I'm trying to do.</p>
  
  <pre><code>oldTOR == false ? c.OldTOR == oldTOR :
  </code></pre>
  
  <p>inside a <code>where</code> LINQ statement. If the value is false then compare the value. If not, then ignore it.</p>