Table of Contents

IsNumeric Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Condition.cs

IsNumeric(string, NumberStyles, IFormatProvider)

Determines whether the specified value can be evaluated as a number.

public static bool IsNumeric(string value, NumberStyles styles = NumberStyles.Number, IFormatProvider provider = null)

Parameters

value string

The value to be evaluated.

styles NumberStyles

A bitwise combination of NumberStyles values that indicates the permitted format of value.

provider IFormatProvider

An IFormatProvider that supplies culture-specific formatting information about value.

Returns

bool

true if the specified value can be evaluated as a number; otherwise, false.