title: Find Value in Multidimensional Array and return all items c#
body: <p>here is the issue, I have an array defined like below:</p>
  
  <p><code>int[,] Users = new int[1000,3];</code></p>
  
  <p>Its data will be something like:</p>
  
  <ul>
  <li>0,1,2  </li>
  <li>1,2,1 </li>
  <li>2,3,2</li>
  <li>3,3,4 </li>
  <li>4,2,3
  ...</li>
  </ul>
  
  <p>the array is used as needed by my script. but I need to be able to filter the array based on one of its dimensions, and return all available matches. </p>
  
  <p>For example, filtering on dimension [1], wanting all that match '3'
  will return an array containing:</p>
  
  <ul>
  <li>2,3,2</li>
  <li>3,3,4</li>
  </ul>
  
  <p>Could anyone give me a hand with this?</p>
  
  <p>Many thanks.</p>