public EmbeddedXmlInitializer() { _stream = EmbeddedXml.GetStream(); XPathDocument doc = new XPathDocument(_stream); _navigator = doc.CreateNavigator(); }
public CurrencyInfo Get(CurrencyIsoCode code) { using (Stream stream = EmbeddedXml.GetStream()) { XPathDocument doc = new XPathDocument(stream); CurrencyInfo info = EmbeddedXml.ReadInfo(doc.CreateNavigator(), code); return(info); } }
public CurrencyInfo Get(CurrencyIsoCode code) { return(EmbeddedXml.ReadInfo(_navigator, code)); }