title: C# Action<T>, Pass function as parameter
body: <p>I want to pass a condition as Action to another method. First line in "ComputerPriceGenerator" works, but how to make the array work (second line)?.. Any ideas</p>
  
  <p>I'm looking for advice..., CalculateAllPrice is not designed yet</p>
  
  <pre><code>public void ComputerPriceGenerator()
  {
      //Below line Works
      PriceMachine.CalculatePrice(cart.Computers[0],() =&gt; ComputerConverter(cart.Computers[0]));           
      //How to make this work, i don't want to loop it???
      PriceMachine.CalculateAllPrice(cart.Computers,() =&gt; ComputerConverter(??));
  }
  
  public void ComputerConverter(Computer comp)
  {
      if (comp.Memory &lt;= 2)
          comp.Discount = 10;
  }
  </code></pre>