GetDefaultDecimalNumberStyle() public static method

Get default decimal number style
public static GetDefaultDecimalNumberStyle ( ) : NumberStyles
return NumberStyles
 /// <summary>
 /// Convert decimal string value in decimal value
 /// </summary>
 /// <param name="strValue">string to convert</param>
 /// <param name="defaultValue">default value to return on convert error</param>
 /// <returns>decimal value</returns>
 public static decimal TryParseDecimal(this string strValue, decimal defaultValue)
 {
     return(strValue.TryParseDecimal(defaultValue,
                                     BasePrimitivesExtensions.GetDefaultDecimalAllowDefaultConversion(),
                                     BasePrimitivesExtensions.GetDefaultDecimalNumberStyle(),
                                     BasePrimitivesExtensions.GetCurrentCulture()));
 }
        /// <summary>
        /// <para>Try parse object decimal to decimal value</para>
        /// </summary>
        /// <param name="objValue">object to convert</param>
        /// <param name="defaultValue">default return value</param>
        /// <returns>decimal result</returns>
        public static decimal TryParseDecimal(this object objValue, decimal defaultValue)
        {
            if (objValue == null)
            {
                return(defaultValue);
            }

            try
            {
                return(objValue.ToString().TryParseDecimal(defaultValue,
                                                           BasePrimitivesExtensions.GetDefaultDecimalAllowDefaultConversion(),
                                                           BasePrimitivesExtensions.GetDefaultDecimalNumberStyle(),
                                                           BasePrimitivesExtensions.GetCurrentCulture()));
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
                return(defaultValue);
            }
        }
 /// <summary>
 /// Test if string value is a valid decimal value
 /// </summary>
 /// <param name="strValue">string value</param>
 /// <returns>true/false</returns>
 public static bool IsValidDecimal(this string strValue)
 {
     return(strValue.IsValidDecimal(
                BasePrimitivesExtensions.GetDefaultDecimalNumberStyle(),
                BasePrimitivesExtensions.GetCurrentCulture()));
 }
 /// <summary>
 /// Convert decimal string value in decimal value
 /// </summary>
 /// <param name="strValue">string to convert</param>
 /// <param name="defaultValue">default value to return on convert error</param>
 /// <param name="allowZero">allow 0 valuen on convert</param>
 /// <returns>decimal value</returns>
 public static decimal TryParseDecimal(this string strValue, decimal defaultValue, bool allowZero)
 {
     return(strValue.TryParseDecimal(defaultValue, allowZero,
                                     BasePrimitivesExtensions.GetDefaultDecimalNumberStyle(),
                                     BasePrimitivesExtensions.GetCurrentCulture()));
 }
 /// <summary>
 /// Parse string array in decimal array
 /// </summary>
 /// <param name="strValue">string to parse</param>
 /// <param name="defaultValue">default value when default tryparse</param>
 /// <param name="allowDefaultConversion">Allow default tryparse values</param>
 /// <returns>decimal array</returns>
 public static decimal[] TryParseDecimalArray(this string strValue, decimal[] defaultValue, bool allowDefaultConversion)
 {
     return(strValue.TryParseDecimalArray(defaultValue, allowDefaultConversion,
                                          BasePrimitivesExtensions.GetDefaultDecimalNumberStyle(),
                                          BasePrimitivesExtensions.GetCurrentCulture()));
 }