title: Convert custom Class to List<>
body: <p>Scenario: 
  i have a web form from where i m taking input for Item class now i want to assign values to feature that have return type of list how can i do that. </p>
  
  <pre><code>item value = new item(),
  value.feature = serialtextbox.text; //error
  
  foreach ( var item in value) //error 
  {
   item.SerialNo= serialtextbox.text; 
  }
  </code></pre>
  
  <p><strong>Item and Item feature classes</strong> </p>
  
  <pre><code>Class Item
  {
   list&lt;Itemfeature&gt; features;
   }
  
   class ItemFeature
    {  
      public int SerialNo
      {
          get { return serialno; }
          set { serialno = value; }
      }
  
      public int Weight
      {
          get { return weight; }
          set { weight = value; }
      }
  </code></pre>
  
  <p>}</p>
  
  <p>Plz help me out </p>