title: C#: Checking an array for a sub-array
body: <p>I would like to know an efficient way in C# to check if a sub-array exists within a larger array, the arrays will always be in numerical order, for example:</p>
  
  <pre><code>x = {1,2,3,4,5,6}
  y = {3,4}
  z = {6,7}
  </code></pre>
  
  <p>y in x = TRUE</p>
  
  <p>z in x = FALSE</p>