C# Class DevUtils.PrimitivesExtensions.DoubleExtensions

Double extensions class
Afficher le fichier Open project: jornfilho/.net-Dev-Utils

Méthodes publiques

Méthode Description
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

Method Details

IsValidDouble() public static méthode

Test if string value is a valid double value
public static IsValidDouble ( this strValue ) : bool
strValue this string value
Résultat bool

IsValidDouble() public static méthode

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
Résultat bool

TryParseDouble() public static méthode

Convert double string value in double value
public static TryParseDouble ( this strValue ) : double
strValue this string to convert
Résultat double

TryParseDouble() public static méthode

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
Résultat double

TryParseDouble() public static méthode

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
Résultat double

TryParseDouble() public static méthode

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
Résultat double

TryParseDouble() public static méthode

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
Résultat double

TryParseDouble() public static méthode

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
Résultat double

TryParseDoubleArray() public static méthode

Parse string array in short double
public static TryParseDoubleArray ( this strValue ) : double[]
strValue this string to parse
Résultat double[]

TryParseDoubleArray() public static méthode

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
Résultat double[]

TryParseDoubleArray() public static méthode

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
Résultat double[]

TryParseDoubleArray() public static méthode

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
Résultat double[]

TryParseDoubleArray() public static méthode

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
Résultat double[]

TryParseDoubleArray() public static méthode

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
Résultat double[]