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

Write6_XmlSchemaDocumentation() private method

private Write6_XmlSchemaDocumentation ( XmlSchemaDocumentation o ) : void
o System.Xml.Schema.XmlSchemaDocumentation
return void
        void Write6_XmlSchemaDocumentation(XmlSchemaDocumentation o) {
            if ((object)o == null) return;
            WriteStartElement("documentation");
            
            WriteAttribute(@"source", @"", ((System.String)o.@Source));
            WriteAttribute(@"lang", @"http://www.w3.org/XML/1998/namespace", ((System.String)o.@Language));
            XmlNode[] a = (XmlNode[])o.@Markup;
            if (a != null) {
                for (int ia = 0; ia < a.Length; ia++) {
                    XmlNode ai = (XmlNode)a[ia];
                    WriteStartElement("node");
                    WriteAttribute("xml", "", ai.OuterXml);
                }
            }
            WriteEndElement();
        }