Ejemplo n.º 1
0
        public static char CurrencyToLetter(WmCurrency currency)
        {
            if (WmCurrency.None == currency)
            {
                throw new ArgumentOutOfRangeException(nameof(currency));
            }

            var letter = currency.ToString();

            if (1 != letter.Length)
            {
                throw new ArgumentOutOfRangeException(nameof(currency));
            }

            return(letter[0]);
        }