StringExtensions.IsDouble method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings.Extensions
Assembly Skybrud.Essentials.dll

IsDouble(string)

Extension method

Gets whether the string matches a double (Double ).

public static bool IsDouble(this string str)

Parameters

str String

The string to validate.

Returns

true if str matches a double; otherwise false.

IsDouble(string, out double)

Extension method

Gets whether the string matches a double (Double ).

public static bool IsDouble(this string str, double result)

Parameters

str String

The string to validate.

result Double

The converted value str matches a Double ; otherwise 0.

Returns

true if str matches a double; otherwise false.