Exemplo n.º 1
0
 private void Write52_XmlSchemaChoice(XmlSchemaChoice o)
 {
     if (o != null)
     {
         o.GetType();
         this.WriteStartElement("choice");
         this.WriteAttribute("id", "", o.Id);
         this.WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs));
         this.WriteAttribute("maxOccurs", "", (o.MaxOccurs == 79228162514264337593543950335M) ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
         this.WriteAttributes(o.UnhandledAttributes, o);
         this.Write5_XmlSchemaAnnotation(o.Annotation);
         this.WriteSortedItems(o.Items);
         this.WriteEndElement();
     }
 }
Exemplo n.º 2
0
        void Write52_XmlSchemaChoice(XmlSchemaChoice o)
        {
            if ((object)o == null)
            {
                return;
            }
            System.Type t = o.GetType();
            WriteStartElement("choice");

            WriteAttribute(@"id", @"", ((System.String)o.@Id));
            WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs));
            WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);
            Write5_XmlSchemaAnnotation((XmlSchemaAnnotation)o.@Annotation);
            WriteSortedItems(o.@Items);
            WriteEndElement();
        }