Пример #1
0
        //protected Dictionary<string, object> additionalResults_ = new Dictionary<string, object>();

        public void loadFromXml(XmlNode node)
        {
            //this.ReferenceDate = node.SelectSingleNode("evaluationTime");
            //XmlNode resultNode = node.SelectSingleNode("pricingResult");
            XmlNode resultNode = node.SelectSingleNode("pricingResult");

            string unitValueStr = resultNode.SelectSingleNode("unitPrice").InnerText;
            string priceStr     = resultNode.SelectSingleNode("price").InnerText;

            this.UnitPrice_ = Convert.ToDouble(unitValueStr);
            this.Price_     = Convert.ToInt64(priceStr);

            GreekResultInfo_ = new GreekResultInfo();
            GreekResultInfo_.loadFromXml(node);
        }
        //protected Dictionary<string, object> additionalResults_ = new Dictionary<string, object>();

        public void loadFromXml(XmlNode node)
        {

            //this.ReferenceDate = node.SelectSingleNode("evaluationTime");
            //XmlNode resultNode = node.SelectSingleNode("pricingResult");
            XmlNode resultNode = node.SelectSingleNode("pricingResult");

            string unitValueStr = resultNode.SelectSingleNode("unitPrice").InnerText;
            string priceStr = resultNode.SelectSingleNode("price").InnerText;

            this.UnitPrice_ = Convert.ToDouble(unitValueStr);
            this.Price_ = Convert.ToInt64(priceStr) ;

            GreekResultInfo_ = new GreekResultInfo();
            GreekResultInfo_.loadFromXml(node);

        }