C# Class DevUtils.PrimitivesExtensions.FloatExtensions

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

Méthodes publiques

Méthode Description
IsValidFloat ( this strValue ) : bool

Test if string value is a valid float value

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

Test if string value is a valid float value

TryParseFloat ( this strValue ) : float

Convert float string value in float value

TryParseFloat ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : float

Convert float string value in float value

TryParseFloat ( this strValue, float defaultValue ) : float

Convert float string value in float value

TryParseFloat ( this strValue, float defaultValue, NumberStyles numberStyle, CultureInfo culture ) : float

Convert float string value in float value

TryParseFloat ( this strValue, float defaultValue, bool allowZero ) : float

Convert float string value in float value

TryParseFloat ( this strValue, float defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : float

Convert float string value in float value

TryParseFloatArray ( this strValue ) : float[]

Parse string array in short float

TryParseFloatArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : float[]

Parse string array in float array

TryParseFloatArray ( this strValue, float defaultValue ) : float[]

Parse string array in float array

TryParseFloatArray ( this strValue, float defaultValue, NumberStyles numberStyle, CultureInfo culture ) : float[]

Parse string array in float array

TryParseFloatArray ( this strValue, float defaultValue, bool allowDefaultConversion ) : float[]

Parse string array in float array

TryParseFloatArray ( this strValue, float defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : float[]

Parse string array in float array

Method Details

IsValidFloat() public static méthode

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

IsValidFloat() public static méthode

Test if string value is a valid float value
public static IsValidFloat ( 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

TryParseFloat() public static méthode

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

TryParseFloat() public static méthode

Convert float string value in float value
public static TryParseFloat ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : float
strValue this string to convert
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo float culture origin
Résultat float

TryParseFloat() public static méthode

Convert float string value in float value
public static TryParseFloat ( this strValue, float defaultValue ) : float
strValue this string to convert
defaultValue float default value to return on convert error
Résultat float

TryParseFloat() public static méthode

Convert float string value in float value
public static TryParseFloat ( this strValue, float defaultValue, NumberStyles numberStyle, CultureInfo culture ) : float
strValue this string to convert
defaultValue float default value to return on convert error
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo float culture origin
Résultat float

TryParseFloat() public static méthode

Convert float string value in float value
public static TryParseFloat ( this strValue, float defaultValue, bool allowZero ) : float
strValue this string to convert
defaultValue float default value to return on convert error
allowZero bool allow 0 valuen on convert
Résultat float

TryParseFloat() public static méthode

Convert float string value in float value
public static TryParseFloat ( this strValue, float defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : float
strValue this string to convert
defaultValue float default value to return on convert error
allowZero bool allow 0 valuen on convert
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo float culture origin
Résultat float

TryParseFloatArray() public static méthode

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

TryParseFloatArray() public static méthode

Parse string array in float array
public static TryParseFloatArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : float[]
strValue this string to parse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
Résultat float[]

TryParseFloatArray() public static méthode

Parse string array in float array
public static TryParseFloatArray ( this strValue, float defaultValue ) : float[]
strValue this string to parse
defaultValue float default value when default tryparse
Résultat float[]

TryParseFloatArray() public static méthode

Parse string array in float array
public static TryParseFloatArray ( this strValue, float defaultValue, NumberStyles numberStyle, CultureInfo culture ) : float[]
strValue this string to parse
defaultValue float default value when default tryparse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
Résultat float[]

TryParseFloatArray() public static méthode

Parse string array in float array
public static TryParseFloatArray ( this strValue, float defaultValue, bool allowDefaultConversion ) : float[]
strValue this string to parse
defaultValue float default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
Résultat float[]

TryParseFloatArray() public static méthode

Parse string array in float array
public static TryParseFloatArray ( this strValue, float defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : float[]
strValue this string to parse
defaultValue float 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 float[]