Last updated 3 years ago
namespace:
Extension methods for the int type. Below is an example of how to call an extension method.
int
int val = 1; int numberOfDigits = val.CountDigits()
public static int CountDigits(this int val): Counts the number of digits a base 10 integer has.
public static int CountDigits(this int val)