Extending LINQ

When working with LINQ, you’ll probably face the situation where you need to do some calculations behind during a query. The way you do this is extending System.Collections.IEnumerable. The code blow is an example of how to implement and to use this extension method. I need to elaborate more this topic, but here’s the utilization: