Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Write51_XmlSchemaUnique()

void System.Xml.Serialization.SchemaObjectWriter.Write51_XmlSchemaUnique ( XmlSchemaUnique o)
inlineprivate

Definition at line 990 of file SchemaObjectWriter.cs.

991 {
992 if (o == null)
993 {
994 return;
995 }
996 WriteStartElement("unique");
997 WriteAttribute("id", "", o.Id);
998 WriteAttribute("name", "", o.Name);
999 WriteAttributes(o.UnhandledAttributes, o);
1000 Write5_XmlSchemaAnnotation(o.Annotation);
1001 Write49_XmlSchemaXPath("selector", "", o.Selector);
1002 XmlSchemaObjectCollection fields = o.Fields;
1003 if (fields != null)
1004 {
1005 for (int i = 0; i < fields.Count; i++)
1006 {
1007 Write49_XmlSchemaXPath("field", "", (XmlSchemaXPath)fields[i]);
1008 }
1009 }
1011 }
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().