Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / TypeEx Class / IsNumeric Method
Type.

In This Topic
    IsNumeric Method (TypeEx)
    In This Topic
    Returns true if the type is any of the numeric data types: double, float, int, uint, long, ulong, short, ushort, sbyte, byte and decimal.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function IsNumeric( _
       ByVal type As Type _
    ) As Boolean
    [Extension()]
    public static bool IsNumeric( 
       Type type
    )

    Parameters

    type
    Type.

    Return Value

    True if the type is numeric.
    See Also