C# Class DevUtils.PrimitivesExtensions.FloatExtensions

Float extensions class
ファイルを表示 Open project: jornfilho/.net-Dev-Utils

Public Methods

Method 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 method

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

IsValidFloat() public static method

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
return bool

TryParseFloat() public static method

Convert float string value in float value
public static TryParseFloat ( this strValue ) : float
strValue this string to convert
return float

TryParseFloat() public static method

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
return float

TryParseFloat() public static method

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
return float

TryParseFloat() public static method

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
return float

TryParseFloat() public static method

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
return float

TryParseFloat() public static method

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
return float

TryParseFloatArray() public static method

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

TryParseFloatArray() public static method

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
return float[]

TryParseFloatArray() public static method

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
return float[]

TryParseFloatArray() public static method

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
return float[]

TryParseFloatArray() public static method

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
return float[]

TryParseFloatArray() public static method

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
return float[]