title: What's the best way to remove portions of a string? (C#)
body: <p>I am looping through an array and there is a string in there that reads like this example: "1001--Some ingredient". </p>
  
  <p>Right now, as I loop through the array I am getting the whole string</p>
  
  <pre><code>string ingCode = theData[i + 1];
  </code></pre>
  
  <p>But what I really need is simply "1001" and not the whole shibang.</p>