title: how do i check to see if a double array contains a certain double in c#
body: <p>I'm using this code right now</p>
  <pre><code>        double[] LocationsDown = { 40, 85, 130, 175, 220, 265, 310, 355 };
          double[] LocationsUp = { 50, 95, 140, 185, 230, 275, 320, 5 };
          double curretangle = Math.Round(targetAngle);
  
          if (LocationsDown == curretangle) // &lt;- Compile Time Error here
          {
              //thing
          }
  </code></pre>
  <p>but it says that</p>
  <blockquote>
  <p>&quot; Operator '==' cannot be applied to operands of type 'double[]' and
  'double' &quot;</p>
  </blockquote>
  <p>I do not understand the correct way to check if the array contains said double I feel like it's going to be an easy fix I just can't put my finger on it.</p>