title: LINQ build in time Silverlight c#
body: <p>I have a method like this:</p>
  
  <p>The parameteres can be null</p>
  
  <pre><code>public string getAll(string d1, string d2, string d3){
       Do the linq
  }
  </code></pre>
  
  <p>I want to do a linq query if d1 is no null, another if d2 is not null, another if d1 and d2 is no null and all the posible convinations whit the parameters.</p>
  
  <p>I dont want to do:</p>
  
  <pre><code>if(d1 != null)
  //linq opt1
  if(d2 != null
  //linq opt2
  if(d1 != null &amp;&amp; d2 != null)
  //linq opt3
  </code></pre>
  
  <p>please :(</p>