예제 #1
0
        public static string GetISOCurrencySymbol(string currencyCode)
        {
            if (currencyCode == null)
            {
                return(InstanceUtils.USDCurrencySymbol);
            }

            string decodedString = "";

            ISOUtility.CurrencyCode cc = ISOUtility.GetCurrencyCode(currencyCode);
            if (string.Equals(currencyCode, InstanceUtils.USDCurrencyCode, StringComparison.InvariantCultureIgnoreCase))
            {
                return(InstanceUtils.USDCurrencySymbol);
            }

            if (cc != null && cc.Symbol.Length > 0)
            {
                decodedString = cc.Symbol;
            }

            return(decodedString);
        }