title: Access a Viewbag like an Array?
body: <p>Imagine a view bag called </p>
  
  <pre><code> ViewBag.Modes
  </code></pre>
  
  <p>this contains the following:</p>
  
  <pre><code>Simple
  Advanced
  Manual
  Complete
  </code></pre>
  
  <p>How can I access the viewbag by index like you would in an array?</p>
  
  <p>e.g Simple  is at index 0 then it would look like this </p>
  
  <pre><code>ViewBag.Modes[0]
  </code></pre>
  
  <p>I tried the above but it doesn't work so...How can I replicate this with viewbag or is there a workaround I can use?</p>