title: C# using a range of indexes in an if statment
body: <p>I have this simple code:</p>
  
  <pre><code>if(number == arrayOfNumbers[1]){
  //some code
  }
  </code></pre>
  
  <p>And I want the code to be like this:</p>
  
  <pre><code>if(number == arrayOfNumbers[index&gt;=1  /*any index that is equal or bigger than one*/]{
  //some code
  }
  </code></pre>
  
  <p>does this kind of functions exist? if not can you tell me the simplest way to write such a statement? also I don't mind coverting the array to a list if such a funciton exists for a list. Can sombody help? thank you</p>
  
  <p>EDIT: I have seen the List.Any() method. but it does not help me. I want to search all the numbers starting from index 1.</p>