Skip to main content

IsNumeric Method

Determines if a type is numeric. Nullable numeric types are considered numeric.

Definition

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static bool IsNumeric(
Type type
)

Parameters

  Type
 

Return Value

Boolean
True if the type is numeric; otherwise false.

Remarks

Boolean is not considered numeric.

See Also

Reference

TypeUtilities Class
Avalonia.Utilities Namespace