title: Lambda expression to replace every items from the List<string> which match the string in c# .net
body: <pre><code>List
  -----
  A
  B
  A
  D
  F
  </code></pre>
  
  <p>Suppose I have a list as above.
  I want to write lambda expression which replace every 'A' to 'C'
  So the output would be as</p>
  
  <pre><code>List
  ----
  C
  B
  C
  D
  F
  </code></pre>
  
  <p>As something will be done by for loop
  but I want to write the lambda expression for it.</p>