C# Class DevUtils.PrimitivesExtensions.DecimalExtensions

Decimal extensions class
Mostra file Open project: jornfilho/.net-Dev-Utils

Public Methods

Method Description
IsValidDecimal ( this strValue ) : bool

Test if string value is a valid decimal value

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

Test if string value is a valid decimal value

TryParseDecimal ( this strValue ) : decimal

Convert decimal string value in decimal value

TryParseDecimal ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : decimal

Convert decimal string value in decimal value

TryParseDecimal ( this strValue, decimal defaultValue ) : decimal

Convert decimal string value in decimal value

TryParseDecimal ( this strValue, decimal defaultValue, NumberStyles numberStyle, CultureInfo culture ) : decimal

Convert decimal string value in decimal value

TryParseDecimal ( this strValue, decimal defaultValue, bool allowZero ) : decimal

Convert decimal string value in decimal value

TryParseDecimal ( this strValue, decimal defaultValue, bool allowZero, NumberStyles numberStyle, CultureInfo culture ) : decimal

Convert decimal string value in decimal value

TryParseDecimalArray ( this strValue ) : decimal[]

Parse string array in short decimal

TryParseDecimalArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : decimal[]

Parse string array in decimal array

TryParseDecimalArray ( this strValue, decimal defaultValue ) : decimal[]

Parse string array in decimal array

TryParseDecimalArray ( this strValue, decimal defaultValue, NumberStyles numberStyle, CultureInfo culture ) : decimal[]

Parse string array in decimal array

TryParseDecimalArray ( this strValue, decimal defaultValue, bool allowDefaultConversion ) : decimal[]

Parse string array in decimal array

TryParseDecimalArray ( this strValue, decimal defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : decimal[]

Parse string array in decimal array

Method Details

IsValidDecimal() public static method

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

IsValidDecimal() public static method

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

TryParseDecimal() public static method

Convert decimal string value in decimal value
public static TryParseDecimal ( this strValue ) : decimal
strValue this string to convert
return decimal

TryParseDecimal() public static method

Convert decimal string value in decimal value
public static TryParseDecimal ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : decimal
strValue this string to convert
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo decimal culture origin
return decimal

TryParseDecimal() public static method

Convert decimal string value in decimal value
public static TryParseDecimal ( this strValue, decimal defaultValue ) : decimal
strValue this string to convert
defaultValue decimal default value to return on convert error
return decimal

TryParseDecimal() public static method

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

TryParseDecimal() public static method

Convert decimal string value in decimal value
public static TryParseDecimal ( this strValue, decimal defaultValue, bool allowZero ) : decimal
strValue this string to convert
defaultValue decimal default value to return on convert error
allowZero bool allow 0 valuen on convert
return decimal

TryParseDecimal() public static method

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

TryParseDecimalArray() public static method

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

TryParseDecimalArray() public static method

Parse string array in decimal array
public static TryParseDecimalArray ( this strValue, NumberStyles numberStyle, CultureInfo culture ) : decimal[]
strValue this string to parse
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
return decimal[]

TryParseDecimalArray() public static method

Parse string array in decimal array
public static TryParseDecimalArray ( this strValue, decimal defaultValue ) : decimal[]
strValue this string to parse
defaultValue decimal default value when default tryparse
return decimal[]

TryParseDecimalArray() public static method

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

TryParseDecimalArray() public static method

Parse string array in decimal array
public static TryParseDecimalArray ( this strValue, decimal defaultValue, bool allowDefaultConversion ) : decimal[]
strValue this string to parse
defaultValue decimal default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
return decimal[]

TryParseDecimalArray() public static method

Parse string array in decimal array
public static TryParseDecimalArray ( this strValue, decimal defaultValue, bool allowDefaultConversion, NumberStyles numberStyle, CultureInfo culture ) : decimal[]
strValue this string to parse
defaultValue decimal default value when default tryparse
allowDefaultConversion bool Allow default tryparse values
numberStyle NumberStyles number style to convert
culture System.Globalization.CultureInfo culture origin
return decimal[]