using a function inside a lamba expression : <p>To manage rounding there are usually two methods, the first method is round values then to sum them. Or sum values then to round them. Of course to the required precision that you want.</p>

<p>I want to go with the first method and I need to update this line that currently do the opposite.</p>

<pre><code>this.ClonedEntity.MontantHT = ArroundDecimal.CustomDecimalArround(correctedLines.Sum(l =&gt; l.MontantHT ?? 0));
</code></pre>

<p>When I try to call my static method in the lambda expression it doesn't work.</p>

<p>How would you suggest to do it while keeping use of the linq syntax ?</p>

<p>Thank you.</p>
