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

Write55_XmlSchemaGroupRef() private method

private Write55_XmlSchemaGroupRef ( XmlSchemaGroupRef o ) : void
o System.Xml.Schema.XmlSchemaGroupRef
return void
        void Write55_XmlSchemaGroupRef(XmlSchemaGroupRef o) {
            if ((object)o == null) return;
            WriteStartElement("group");
            
            WriteAttribute(@"id", @"", ((System.String)o.@Id));
            WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs));
            WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
            
            if (!o.RefName.IsEmpty) {
                WriteAttribute("ref", "", o.RefName);
            }
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);
            Write5_XmlSchemaAnnotation((XmlSchemaAnnotation)o.@Annotation);
            WriteEndElement();
        }