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

Write36_XmlSchemaSimpleContent() private method

private Write36_XmlSchemaSimpleContent ( XmlSchemaSimpleContent o ) : void
o System.Xml.Schema.XmlSchemaSimpleContent
return void
        void Write36_XmlSchemaSimpleContent(XmlSchemaSimpleContent o) {
            if ((object)o == null) return;
            WriteStartElement("simpleContent");
            
            WriteAttribute(@"id", @"", ((System.String)o.@Id));
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);
            Write5_XmlSchemaAnnotation((XmlSchemaAnnotation)o.@Annotation);
            if (o.@Content is XmlSchemaSimpleContentRestriction) {
                Write40_XmlSchemaSimpleContentRestriction((XmlSchemaSimpleContentRestriction)o.@Content);
            }
            else if (o.@Content is XmlSchemaSimpleContentExtension) {
                Write38_XmlSchemaSimpleContentExtension((XmlSchemaSimpleContentExtension)o.@Content);
            }
            WriteEndElement();
        }