Returns true if the type is any of the numeric data types: double, float, int, uint, long, ulong, short, ushort, sbyte, byte and decimal.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static bool IsNumeric(
	this Type type
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function IsNumeric ( _
	type As Type _
) As Boolean

Parameters

type
Type: System..::..Type
Type.

Return Value

True if the type is numeric.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also