/// <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())); }
/// <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)); }