System.Xml.Serialization.SchemaObjectWriter.Write52_XmlSchemaChoice C# (CSharp) Method

Write52_XmlSchemaChoice() private method

private Write52_XmlSchemaChoice ( XmlSchemaChoice o ) : void
o System.Xml.Schema.XmlSchemaChoice
return void
        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();
        }