static public Decimal GetExchangeRate(String CurrencyCode) { if (CurrencyCode.Length == 0) { throw new ArgumentException("Invalid CurrencyCode (empty string)"); } Decimal tmpS = System.Decimal.Zero; XmlNode n = RatesDoc.SelectSingleNode("//Currency[@CurrencyCode=" + CommonLogic.SQuote(CurrencyCode) + "]"); if (n != null) { tmpS = XmlCommon.XmlAttributeUSDecimal(n, "ExchangeRate"); } return(tmpS); }