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

Write40_XmlSchemaSimpleContentRestriction() private method

private Write40_XmlSchemaSimpleContentRestriction ( XmlSchemaSimpleContentRestriction o ) : void
o System.Xml.Schema.XmlSchemaSimpleContentRestriction
return void
        void Write40_XmlSchemaSimpleContentRestriction(XmlSchemaSimpleContentRestriction 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);
            Write9_XmlSchemaSimpleType((XmlSchemaSimpleType)o.@BaseType); 
            WriteFacets(o.Facets);
            WriteSortedItems(o.Attributes);
            Write33_XmlSchemaAnyAttribute((XmlSchemaAnyAttribute)o.@AnyAttribute);
            WriteEndElement();
        }