Ejemplo n.º 1
0
        /// <summary>
        /// Answers the currency used by this decimal format.
        /// </summary>
        ///
        /// <returns>currency of DecimalFormatSymbols used by this decimal format</returns>
        /// <seealso cref="M:System.Globalization.NumberFormatInfo.GetCurrency"/>
        public override Currency GetCurrency()
        {
            IBM.ICU.Util.Currency cur = dform.GetCurrency();
            String code = (cur == null) ? "XXX" : cur.GetCurrencyCode(); //$NON-NLS-1$

            return(IBM.ICU.Util.Currency.GetInstance(code));
        }