IsNumeric Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
IsNumeric(string, NumberStyles, IFormatProvider)
Determines whether the specified value can be evaluated as a number.
public static bool IsNumeric(this string value, NumberStyles style = NumberStyles.Number, IFormatProvider provider = null)
Parameters
valuestringThe string to extend.
styleNumberStylesA bitwise combination of NumberStyles values that indicates the permitted format of
value.providerIFormatProviderAn IFormatProvider that supplies culture-specific formatting information about
value.
Returns
- bool
trueif the specified value can be evaluated as a number; otherwise,false.