ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods

int.IsNumber()

Checks if an integer is a number

Source

public static bool IsNumber(this int i)
{
    return true;
}

Example

5.IsNumber() // returns true

Author: McBrover

Submitted on: 6 mrt. 2015

Language: C#

Type: System.Int32

Views: 7858