title: Checking values inside a 2D array
body: <p>I have a 2 dimensional array <code>int[][] data</code> and i want to see if the value contains the value <code>45</code> for example</p>
  
  <p>I created this line of code </p>
  
  <pre><code>bool contains = data.Where(x =&gt; x.Contains(45)).ToArray().Count() != 0 ? true : false;
  </code></pre>
  
  <p>but it looks like there is unnecessary code and I am sure that there is an easier or more efficient way to do this</p>