C# Класс DevUtils.PrimitivesExtensions.DoubleExtensions

Double extensions class
Показать файл Открыть проект

Открытые методы

Метод Описание
IsValidDouble ( this strValue ) : bool

Test if string value is a valid double value

IsValidDouble ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : bool

Test if string value is a valid double value

TryParseDouble ( this strValue ) : double

Convert double string value in double value

TryParseDouble ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : double

Convert double string value in double value

TryParseDouble ( this strValue, double defaultValue ) : double

Convert double string value in double value

TryParseDouble ( this strValue, double defaultValue, NumberStyles numberStyle, CultureInfo culture ) : double

Convert double string value in double value

TryParseDouble ( this strValue, double defaultValue, bool allowZero ) : double

Convert double string value in double value

TryParseDouble ( this strValue, double defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : double

Convert double string value in double value

TryParseDoubleArray ( this strValue ) : double[]

Parse string array in short double

TryParseDoubleArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : double[]

Parse string array in double array

TryParseDoubleArray ( this strValue, double defaultValue ) : double[]

Parse string array in double array

TryParseDoubleArray ( this strValue, double defaultValue, NumberStyles numberStyle, CultureInfo culture ) : double[]

Parse string array in double array

TryParseDoubleArray ( this strValue, double defaultValue, bool allowDefaultConversion ) : double[]

Parse string array in double array

TryParseDoubleArray ( this strValue, double defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : double[]

Parse string array in double array

Описание методов

IsValidDouble() публичный статический Метод

Test if string value is a valid double value
public static IsValidDouble ( this strValue ) : bool
strValue this string value
Результат bool

IsValidDouble() публичный статический Метод

Test if string value is a valid double value
public static IsValidDouble ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : bool
strValue this string value
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
Результат bool

TryParseDouble() публичный статический Метод

Convert double string value in double value
public static TryParseDouble ( this strValue ) : double
strValue this string to convert
Результат double

TryParseDouble() публичный статический Метод

Convert double string value in double value
public static TryParseDouble ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : double
strValue this string to convert
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo double culture origin
Результат double

TryParseDouble() публичный статический Метод

Convert double string value in double value
public static TryParseDouble ( this strValue, double defaultValue ) : double
strValue this string to convert
defaultValue double default value to return on convert error
Результат double

TryParseDouble() публичный статический Метод

Convert double string value in double value
public static TryParseDouble ( this strValue, double defaultValue, NumberStyles numberStyle, CultureInfo culture ) : double
strValue this string to convert
defaultValue double default value to return on convert error
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo double culture origin
Результат double

TryParseDouble() публичный статический Метод

Convert double string value in double value
public static TryParseDouble ( this strValue, double defaultValue, bool allowZero ) : double
strValue this string to convert
defaultValue double default value to return on convert error
allowZero bool allow 0 valuen on convert
Результат double

TryParseDouble() публичный статический Метод

Convert double string value in double value
public static TryParseDouble ( this strValue, double defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : double
strValue this string to convert
defaultValue double default value to return on convert error
allowZero bool allow 0 valuen on convert
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo double culture origin
Результат double

TryParseDoubleArray() публичный статический Метод

Parse string array in short double
public static TryParseDoubleArray ( this strValue ) : double[]
strValue this string to parse
Результат double[]

TryParseDoubleArray() публичный статический Метод

Parse string array in double array
public static TryParseDoubleArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : double[]
strValue this string to parse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
Результат double[]

TryParseDoubleArray() публичный статический Метод

Parse string array in double array
public static TryParseDoubleArray ( this strValue, double defaultValue ) : double[]
strValue this string to parse
defaultValue double default value when default tryparse
Результат double[]

TryParseDoubleArray() публичный статический Метод

Parse string array in double array
public static TryParseDoubleArray ( this strValue, double defaultValue, NumberStyles numberStyle, CultureInfo culture ) : double[]
strValue this string to parse
defaultValue double default value when default tryparse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
Результат double[]

TryParseDoubleArray() публичный статический Метод

Parse string array in double array
public static TryParseDoubleArray ( this strValue, double defaultValue, bool allowDefaultConversion ) : double[]
strValue this string to parse
defaultValue double default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
Результат double[]

TryParseDoubleArray() публичный статический Метод

Parse string array in double array
public static TryParseDoubleArray ( this strValue, double defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : double[]
strValue this string to parse
defaultValue double default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
Результат double[]