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

Write5_XmlSchemaAnnotation() private method

private Write5_XmlSchemaAnnotation ( XmlSchemaAnnotation o ) : void
o System.Xml.Schema.XmlSchemaAnnotation
return void
        void Write5_XmlSchemaAnnotation(XmlSchemaAnnotation o) {
            if ((object)o == null) return;
            WriteStartElement("annotation");
            
            WriteAttribute(@"id", @"", ((System.String)o.@Id));
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);
            System.Xml.Schema.XmlSchemaObjectCollection a = (System.Xml.Schema.XmlSchemaObjectCollection)o.@Items;
            if (a != null) {
                for (int ia = 0; ia < a.Count; ia++) {
                    XmlSchemaObject ai = (XmlSchemaObject)a[ia];
                    if (ai is XmlSchemaAppInfo) {
                        Write7_XmlSchemaAppInfo((XmlSchemaAppInfo)ai);
                    }
                    else if (ai is XmlSchemaDocumentation) {
                        Write6_XmlSchemaDocumentation((XmlSchemaDocumentation)ai);
                    }
                }
            }
            WriteEndElement();
        }