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
- Author: MrMostInteresting
- Submitted on: 3/6/2015 10:15:59 AM
- Language: C#
- Type: Int
- Views: 2231
Double click on the code to select all.