title: Replacing characters in a string array with linq
body: <pre><code>var file = from line in lines
  
  select (((line =&gt; (line == ',' ? '.' : line)) || ((line =&gt; (line == ',' ? '.' : line))
  </code></pre>
  
  <p>How do I replace all ',' with '.' AND ';' with ', in C#</p>
  
  <p>Is there any elegant way to do this in linq or do I have to it in two step something like below</p>
  
  <pre><code>var file1= from line in lines
             select (line.Replace(',', '.'));
  
  var file2= from line2 in file1
             select (line2.Replace(';', ','));
  </code></pre>