title: Fill string with numbers from 0 to 9 and start new until length is 50
body: <p>So I've seen <a href="https://stackoverflow.com/questions/36793415/get-sub-string-of-nth-from-a-string-less-or-greater-length-than-n-in-c-sharp">this question</a> today. Now I thought a bit further and came up with the following scenario:</p>
  
  <pre><code>string myString = "Hello";
  int[] numbersFromZeroToNine = new[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
  </code></pre>
  
  <p>I want to add the numbers from <code>numbersFromZeroToNine</code> to <code>myString</code> (with restarting at position <code>0</code>) until <code>myString</code> has a length of 50. If <code>myString</code> already is longer than 50 characters, I want to print out the first 50 chars.</p>
  
  <p>I could achieve it by using the following lines:</p>
  
  <pre><code>if (myString.Length &gt;= 50)
      myString = myString.Substring(0, 50);
  else
  {
      for (int counter = 0; myString.Length &lt; 50; counter++)
      {
          if (counter == numbersFromZeroToNine.Count())
              counter = 0;
          myString += numbersFromZeroToNine[counter];
      }
  }
  
  Console.WriteLine(myString);
  Console.ReadLine();
  </code></pre>
  
  <p>Result:</p>
  
  <blockquote>
    <p>Hello012345678901234567890123456789012345678901234</p>
  </blockquote>
  
  <p>As you see, I could do it with using a <code>for</code> loop and an <code>if</code> statement inside the <code>else</code>. But I don't think this is the nicest (and shortest) approach for this scenario. That's what I wanted to ask you now: Is there a shorter solution to achieve the same result?</p>