title: LINQ where or filter c#
body: <p>I have a collection being returned by a web service. A property of this collection is "StatusCode" which is a string value that can be anywhere from 0 to 5 (don't ask me why it was set up as a string... I didn't schema this). Initially I was going to use LINQ to filter this, then realized that was stupid (why return 100% of the records when I need 20%) and I parameterized my Stored Proc to do this for me. </p>
  
  <p>In any case, I wrote a LINQ query that worked, but for curiosity sake, I imagine there's a better way to do it: </p>
  
  <pre><code>var wo = from w in workOrders
      where w.StatusCode == "0"
         || w.StatusCode == "1"
         || w.StatusCode == "2"
      select w;
  </code></pre>
  
  <p>Any suggestions? Correct answer goes to most thorough answer - including either documentation, best practice, etc...</p>