Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Write47_XmlSchemaKey()

void System.Xml.Serialization.SchemaObjectWriter.Write47_XmlSchemaKey ( XmlSchemaKey o)
inlineprivate

Definition at line 910 of file SchemaObjectWriter.cs.

911 {
912 if (o == null)
913 {
914 return;
915 }
916 WriteStartElement("key");
917 WriteAttribute("id", "", o.Id);
918 WriteAttribute("name", "", o.Name);
919 WriteAttributes(o.UnhandledAttributes, o);
920 Write5_XmlSchemaAnnotation(o.Annotation);
921 Write49_XmlSchemaXPath("selector", "", o.Selector);
922 XmlSchemaObjectCollection fields = o.Fields;
923 if (fields != null)
924 {
925 for (int i = 0; i < fields.Count; i++)
926 {
927 Write49_XmlSchemaXPath("field", "", (XmlSchemaXPath)fields[i]);
928 }
929 }
931 }
void WriteAttribute(string localName, string ns, string value)
void Write49_XmlSchemaXPath(string name, string ns, XmlSchemaXPath o)
void WriteAttributes(XmlAttribute[] a, XmlSchemaObject o)
void Write5_XmlSchemaAnnotation(XmlSchemaAnnotation o)

References System.Collections.CollectionBase.Count, System.Xml.Dictionary, System.Xml.Serialization.SchemaObjectWriter.Write49_XmlSchemaXPath(), System.Xml.Serialization.SchemaObjectWriter.Write5_XmlSchemaAnnotation(), System.Xml.Serialization.SchemaObjectWriter.WriteAttribute(), System.Xml.Serialization.SchemaObjectWriter.WriteAttributes(), System.Xml.Serialization.SchemaObjectWriter.WriteEndElement(), and System.Xml.Serialization.SchemaObjectWriter.WriteStartElement().

Referenced by System.Xml.Serialization.SchemaObjectWriter.Write3_XmlSchemaObject(), and System.Xml.Serialization.SchemaObjectWriter.Write48_XmlSchemaIdentityConstraint().