Ejemplo n.º 1
0
        public void ReadFromXml(XmlReader reader)
        {
            reader.MoveToContent();
            if (reader.IsEmptyElement)
            {
                reader.Read(); return;
            }

            reader.Read();
            while (!reader.EOF)
            {
                if (reader.IsStartElement())
                {
                    if (reader.Name == "groupContainer")
                    {
                        var groupContainer = new GroupContainer();
                        groupContainer.ReadFromXml(reader);
                        groupContainers.Add(groupContainer);
                    }
                    else
                    {
                        reader.Skip();
                    }
                }
                else
                {
                    reader.Read();
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        public void ReadFromXml(XmlReader reader)
        {
            reader.MoveToContent();
            if (reader.IsEmptyElement) { reader.Read(); return; }

            reader.Read();
            while (!reader.EOF)
            {
                if (reader.IsStartElement())
                {
                    if (reader.Name == "groupContainer")
                    {
                        var groupContainer = new GroupContainer();
                        groupContainer.ReadFromXml(reader);
                        groupContainers.Add(groupContainer);
                    }
                    else
                    {
                        reader.Skip();
                    }
                }
                else
                {
                    reader.Read();
                    break;
                }
            }
        }