Exemple #1
0
        public EmbeddedXmlInitializer()
        {
            _stream = EmbeddedXml.GetStream();
            XPathDocument doc = new XPathDocument(_stream);

            _navigator = doc.CreateNavigator();
        }
Exemple #2
0
        public CurrencyInfo Get(CurrencyIsoCode code)
        {
            using (Stream stream = EmbeddedXml.GetStream())
            {
                XPathDocument doc = new XPathDocument(stream);

                CurrencyInfo info = EmbeddedXml.ReadInfo(doc.CreateNavigator(), code);

                return(info);
            }
        }
Exemple #3
0
 public CurrencyInfo Get(CurrencyIsoCode code)
 {
     return(EmbeddedXml.ReadInfo(_navigator, code));
 }