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

            _navigator = doc.CreateNavigator();
        }
Esempio n. 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);
            }
        }