Table of Contents

IsNumeric Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/StringExtensions.cs

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

value string

The string to extend.

style 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.