Extension methods to calculate factorial of a numb
no vote
Using extension method helps in adding extra methods of our choices into existing .dll files or 3rd party classes.
In this I have a factorial method into the existing class System.Int32 which will return the factorial value of any valid integer.