예제 #1
0
        public RollupResponse(XmlNode response)
        {
            XmlNode results = XmlHelper.SelectSingleNode(response, "Results");

            foreach (XmlNode nameValuePair in results.ChildNodes)
            {
                XmlNode key = XmlHelper.SelectSingleNode(nameValuePair, "key");

                if (XmlHelper.GetNodeTextValue(key) == "EntityCollection")
                {
                    XmlNode value = XmlHelper.SelectSingleNode(nameValuePair, "value");
                    this.EntityCollection = EntityCollection.DeSerialise(value);
                }
            }
        }