title: C# - Genereic List copy one row add Another row
body: <p>Am having a list of students and on condition i need to copy one row and add that row with minor change</p>
  
  <p>for example:</p>
  
  <p>Class Student having follwing  properties </p>
  
  <pre><code>public class Student
  {      
      public int Id { get; set; }     
      public string Name { get; set; }
      public string Section { get; set; }
      public int Marks { get; set; }
  }
  </code></pre>
  
  <p>So while looping through List if marks = 90 i need to copy that row and add another row by updating section </p>
  
  <pre><code> foreach (var item in studentData)
   {
      if(item.Section == 90)
      {
          //I need add some logic and update section and copy this item fully 
          //Add this modified item as new item to studentData
      }
   }
  </code></pre>
  
  <p>If student class had 3 items initially</p>
  
  <pre><code>1 "Sam" "A" 48
  1 "John" "B" 68
  1 "Broad" "A" 90
  </code></pre>
  
  <p>my expected output would be</p>
  
  <pre><code>1 "Sam" "A" 48
  1 "John" "B" 68
  1 "Broad" "A" 90
  1 "Broad" "C" 90
  
  
  //Where i added one more row modifying the section
  </code></pre>
  
  <p>What will be the easiest way to do this without much looping ? am stuck!!</p>
  
  <p>I believe am clear with the question atleast with example !!</p>
  
  <p>Thanks</p>