GetDefaultDecimalArrayAllowDefaultConversion() public static method

Get default decimal array allow default conversion value
public static GetDefaultDecimalArrayAllowDefaultConversion ( ) : bool
return bool
コード例 #1
0
 /// <summary>
 /// Parse string array in short decimal
 /// </summary>
 /// <param name="strValue">string to parse</param>
 /// <returns>decimal array</returns>
 public static decimal[] TryParseDecimalArray(this string strValue)
 {
     return(strValue.TryParseDecimalArray(null,
                                          BasePrimitivesExtensions.GetDefaultDecimalArrayAllowDefaultConversion(),
                                          BasePrimitivesExtensions.GetDefaultDecimalNumberStyle(),
                                          BasePrimitivesExtensions.GetCurrentCulture()));
 }
コード例 #2
0
 /// <summary>
 /// Parse string array in decimal array
 /// </summary>
 /// <param name="strValue">string to parse</param>
 /// <param name="numberStyle">number style to convert</param>
 /// <param name="culture">culture origin</param>
 /// <returns>decimal array</returns>
 public static decimal[] TryParseDecimalArray(this string strValue, NumberStyles numberStyle, CultureInfo culture)
 {
     return(strValue.TryParseDecimalArray(null,
                                          BasePrimitivesExtensions.GetDefaultDecimalArrayAllowDefaultConversion(),
                                          numberStyle, culture));
 }