Beispiel #1
0
        /// <summary>Returns a formatted <see cref="string"/> that represents the current </summary>
        /// <param name="format">
        /// The format that this describes the formatting.
        /// </param>
        /// <param name="formatProvider">
        /// The format provider.
        /// </param>
        public string ToString(string format, IFormatProvider formatProvider)
        {
            string formatted;

            if (StringFormatter.TryApplyCustomFormatter(format, this, formatProvider, out formatted))
            {
                return(formatted);
            }
            var numberFormatInfo = Currency.GetNumberFormatInfo(formatProvider);

            return(m_Value.ToString(format, numberFormatInfo));
        }