GetDefaultDecimalAllowDefaultConversion() public static method

Get default decimal allow default conversion
public static GetDefaultDecimalAllowDefaultConversion ( ) : bool
return bool
 /// <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>
 /// Convert decimal string value in decimal value
 /// </summary>
 /// <param name="strValue">string to convert</param>
 /// <param name="numberStyle">number style to convert</param>
 /// <param name="culture">decimal culture origin</param>
 /// <returns>decimal value</returns>
 public static decimal TryParseDecimal(this string strValue, NumberStyles numberStyle, CultureInfo culture)
 {
     return(strValue.TryParseDecimal(BasePrimitivesExtensions.GetDefaultDecimalConversionValue(),
                                     BasePrimitivesExtensions.GetDefaultDecimalAllowDefaultConversion(),
                                     numberStyle, culture));
 }