title: Substring build in iteration loop based on delimiters
body: <p>I'm pretty new to <code>C#</code> and having trouble. </p>
  
  <p>I have this string with a '/'- delimiter: <code>"1/2/10/4"</code></p>
  
  <p>The string I need to use while I'm iterating through the loop should look like this:</p>
  
  <pre><code>i = 1; "1"
  i = 2; "1/2"
  i = 3; "1/2/10"
  i = 4; "1/2/10/4"  
  </code></pre>
  
  <p>Somehow it should be integrated here, but I don't know how:</p>
  
  <pre><code>        var IDArray = Convert.ToString(NodesID).Split('/');
          for (int i = 0; i &lt; Convert.ToString(NodesID).Count(x =&gt; x == '/')+2; i++)
          {
              string IDCheck = IDArray[i];
              string ???
          }
  </code></pre>