EmberSequence ConvertTupleDescription(BerTag tag, XElement xml)
        {
            var ember = new EmberSequence(tag);

            foreach (var itemsXml in xml.Elements("TupleItemDescription"))
            {
                var glowItem = new GlowTupleItemDescription(0, GlowTags.CollectionItem);

                var typeXml = itemsXml.Element("type");
                if (typeXml != null)
                {
                    var type = ConvertParameterType(typeXml.Value);

                    if (type != null)
                    {
                        glowItem.Type = type.Value;
                    }
                }

                itemsXml.Element("name").Do(value => glowItem.Name = value);

                ember.Insert(glowItem);
            }

            return(ember);
        }
Esempio n. 2
0
        EmberSequence ConvertTupleDescription(BerTag tag, XElement xml)
        {
            var ember = new EmberSequence(tag);

             foreach(var itemsXml in xml.Elements("TupleItemDescription"))
             {
            var glowItem = new GlowTupleItemDescription(0, GlowTags.CollectionItem);

            var typeXml = itemsXml.Element("type");
            if(typeXml != null)
            {
               var type = ConvertParameterType(typeXml.Value);

               if(type != null)
                  glowItem.Type = type.Value;
            }

            itemsXml.Element("name").Do(value => glowItem.Name = value);

            ember.Insert(glowItem);
             }

             return ember;
        }