C# 클래스 DevUtils.PrimitivesExtensions.DecimalExtensions

Decimal extensions class
파일 보기 프로젝트 열기: jornfilho/.net-Dev-Utils

공개 메소드들

메소드 설명
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

메소드 상세

IsValidDecimal() 공개 정적인 메소드

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

IsValidDecimal() 공개 정적인 메소드

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
리턴 bool

TryParseDecimal() 공개 정적인 메소드

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

TryParseDecimal() 공개 정적인 메소드

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
리턴 decimal

TryParseDecimal() 공개 정적인 메소드

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
리턴 decimal

TryParseDecimal() 공개 정적인 메소드

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
리턴 decimal

TryParseDecimal() 공개 정적인 메소드

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
리턴 decimal

TryParseDecimal() 공개 정적인 메소드

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
리턴 decimal

TryParseDecimalArray() 공개 정적인 메소드

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

TryParseDecimalArray() 공개 정적인 메소드

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
리턴 decimal[]

TryParseDecimalArray() 공개 정적인 메소드

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
리턴 decimal[]

TryParseDecimalArray() 공개 정적인 메소드

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
리턴 decimal[]

TryParseDecimalArray() 공개 정적인 메소드

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
리턴 decimal[]

TryParseDecimalArray() 공개 정적인 메소드

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
리턴 decimal[]