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

            _navigator = doc.CreateNavigator();
        }
示例#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);
            }
        }