Increment

  public static class IntExtensions
    {
        public static int Increment(this int i)
        {
            return ++i;
        }
    }
Example:
5.Increment(); // result should be six

Description

Increments a integer number by one

Details

Double click on the code to select all.

 

;