title: Updating single Column of List without Foreach Loop
body: <p>I have a <code>List</code> </p>
  
  <pre><code>List&lt;Myclass&gt; li = new List&lt;Myclass&gt; ();
  </code></pre>
  
  <p>where <code>Myclass</code> is </p>
  
  <pre><code>public class Myclass
  {
      public string ExamName { get; set; }
      public Nullable&lt;decimal&gt; Marks { get; set; }
      public Nullable&lt;decimal&gt; OutOfMarks { get; set; }
      public string GradeMarks { get; set; }
      public Nullable&lt;decimal&gt; markEaxmTotalOverAll { get; set; }
      public Nullable&lt;decimal&gt; MarksExamTotalMarksTypeWise { get; set; }
      public Nullable&lt;decimal&gt; MarksExamOutOfMarksTotalOverAll { get; set; }
      public Nullable&lt;decimal&gt; MarksExamOutOfMarksTotalMarksTypeWise { get; set; }
  }
  </code></pre>
  
  <p>li contains almost 10000 items <br>
  i want to set <code>markEaxmTotalOverAll</code> value to  50 in all 10000 items <br>
  but don't want to do it with loop , Is there any way to update it , I tried this code</p>
  
  <pre><code>li.Select(s =&gt; { s.MarksExamTotalOverAll = 50; return s; }); 
  </code></pre>
  
  <p>but its not working</p>