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

Write47_XmlSchemaKey() private method

private Write47_XmlSchemaKey ( XmlSchemaKey o ) : void
o System.Xml.Schema.XmlSchemaKey
return void
        void Write47_XmlSchemaKey(XmlSchemaKey o) {
            if ((object)o == null) return;
            System.Type t = o.GetType();
            WriteStartElement("key");
            WriteAttribute(@"id", @"", ((System.String)o.@Id));
            WriteAttribute(@"name", @"", ((System.String)o.@Name));
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);
            Write5_XmlSchemaAnnotation((XmlSchemaAnnotation)o.@Annotation);
            Write49_XmlSchemaXPath(@"selector", @"", (XmlSchemaXPath)o.@Selector); {
            XmlSchemaObjectCollection a = (XmlSchemaObjectCollection)o.@Fields;
            if (a != null) {
                for (int ia = 0; ia < a.Count; ia++) {
                    Write49_XmlSchemaXPath(@"field", @"", (XmlSchemaXPath)a[ia]);
                }
            }
        }
            WriteEndElement();
        }