title: How to run a function on all members of a list using linq?
body: <p>I have a list of Objects that I am receiving performing web service call. </p>
  
  <pre><code>List&lt;ProcessInstances&gt; list = processService.GetProcessInstances(id);
  </code></pre>
  
  <p>I want to call a function on each member of the list. I could use a For loop but I want to use a linq query since I will be doing this (reading from the web service) quite a few times in my code. So far I have,</p>
  
  <pre><code>list.Select(obj =&gt; GetProcessedParameters(obj.Id));
  
  //GetProcessedParameters(int id) does some lookup and validation based on the id.
  </code></pre>
  
  <p>But that gives me an error saying the type is not recognized. Why is it giving me an error? How would I accomplish this? Thanks in advance!</p>