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

Write56_XmlSchemaComplexContentRestriction() private method

private Write56_XmlSchemaComplexContentRestriction ( XmlSchemaComplexContentRestriction o ) : void
o System.Xml.Schema.XmlSchemaComplexContentRestriction
return void
        void Write56_XmlSchemaComplexContentRestriction(XmlSchemaComplexContentRestriction o) {
            if ((object)o == null) return;
            WriteStartElement("restriction");
            
            WriteAttribute(@"id", @"", ((System.String)o.@Id));
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);

            if ([email protected]){
                WriteAttribute(@"base", @"", o.@BaseTypeName);
            }

            Write5_XmlSchemaAnnotation((XmlSchemaAnnotation)o.@Annotation);
            if (o.@Particle is XmlSchemaSequence) {
                Write54_XmlSchemaSequence((XmlSchemaSequence)o.@Particle);
            }
            else if (o.@Particle is XmlSchemaGroupRef) {
                Write55_XmlSchemaGroupRef((XmlSchemaGroupRef)o.@Particle);
            }
            else if (o.@Particle is XmlSchemaChoice) {
                Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle);
            }
            else if (o.@Particle is XmlSchemaAll) {
                Write43_XmlSchemaAll((XmlSchemaAll)o.@Particle);
            }
            WriteSortedItems(o.Attributes);
            Write33_XmlSchemaAnyAttribute((XmlSchemaAnyAttribute)o.@AnyAttribute);
            WriteEndElement();
        }