title: List in ASP.NET
body: <p>I have been using PHP for a while now but had to move to ASP.NET MVC</p>
  
  <p>I am trying to get an array like Below</p>
  
  <pre><code>Order[0]
        =&gt;MaterialName="MName"
        =&gt;MaterialType=1
        =&gt;MaterialDescription="Description"
        =&gt;Roles[0]
                   =&gt;"Televsion"= "ABCTV"
                   =&gt;"Radio"= "ABC Radio"
        =&gt;Roles[1]
                   =&gt;"Televsion"= "DEFTV"
                   =&gt;"Radio"= "DEF Radio"
  
  Order[1]
        =&gt;MaterialName="MName"
        =&gt;MaterialType=1
        =&gt;MaterialDescription="Description"
        =&gt;Roles[0]
                   =&gt;"Televsion"= "ABCTV"
                   =&gt;"Radio"= "ABC Radio"
        =&gt;Roles[1]
                   =&gt;"Televsion"= "DEFTV"
                   =&gt;"Radio"= "DEF Radio"
  </code></pre>
  
  <p>I could generate this in PHP by making the first array and append others afterwards.</p>
  
  <p>And Also loop through to get the values out of it.</p>
  
  <p>I want to get this done in ASP.NET MVC but to no avail.</p>
  
  <p>Arrays dont allow names and dictionary cannot be appended.</p>