Exemple #1
0
        internal static WindowsStoreServiceAppScreenshotNode ParseXml(XmlReader reader)
        {
            var node = new WindowsStoreServiceAppScreenshotNode();

            reader.ReadStartElement();

            while (reader.NodeType != XmlNodeType.EndElement)
            {
                switch (reader.Name)
                {
                case "U":
                    node.Url = reader.ReadElementContentAsString();
                    break;

                case "Cap":
                    node.Caption = reader.ReadElementContentAsString();
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            reader.ReadEndElement();

            return(node);
        }
        internal static WindowsStoreServiceAppScreenshotNode ParseXml(XmlReader reader)
        {
            var node = new WindowsStoreServiceAppScreenshotNode();

            reader.ReadStartElement();

            while (reader.NodeType != XmlNodeType.EndElement)
            {
                switch (reader.Name)
                {
                    case "U":
                        node.Url = reader.ReadElementContentAsString();
                        break;

                    case "Cap":
                        node.Caption = reader.ReadElementContentAsString();
                        break;

                    default:
                        reader.Skip();
                        break;
                }
            }

            reader.ReadEndElement();

            return node;
        }