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

◆ WriteArrayNode() [2/3]

void System.Xml.XmlDictionaryWriter.WriteArrayNode ( XmlDictionaryReader reader,
string prefix,
XmlDictionaryString localName,
XmlDictionaryString namespaceUri,
Type type )
inlineprivateinherited

Definition at line 585 of file XmlDictionaryWriter.cs.

586 {
587 if (type == typeof(bool))
588 {
589 BooleanArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
590 return;
591 }
592 if (type == typeof(short))
593 {
594 Int16ArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
595 return;
596 }
597 if (type == typeof(int))
598 {
599 Int32ArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
600 return;
601 }
602 if (type == typeof(long))
603 {
604 Int64ArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
605 return;
606 }
607 if (type == typeof(float))
608 {
609 SingleArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
610 return;
611 }
612 if (type == typeof(double))
613 {
614 DoubleArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
615 return;
616 }
617 if (type == typeof(decimal))
618 {
619 DecimalArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
620 return;
621 }
622 if (type == typeof(DateTime))
623 {
624 DateTimeArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
625 return;
626 }
627 if (type == typeof(Guid))
628 {
629 GuidArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
630 return;
631 }
632 if (type == typeof(TimeSpan))
633 {
634 TimeSpanArrayHelperWithDictionaryString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
635 return;
636 }
638 reader.Read();
639 }
void WriteElementNode(XmlDictionaryReader reader, bool defattr)

References System.Xml.Dictionary, System.Xml.BooleanArrayHelperWithDictionaryString.Instance, System.Xml.DateTimeArrayHelperWithDictionaryString.Instance, System.Xml.DecimalArrayHelperWithDictionaryString.Instance, System.Xml.DoubleArrayHelperWithDictionaryString.Instance, System.Xml.GuidArrayHelperWithDictionaryString.Instance, System.Xml.Int16ArrayHelperWithDictionaryString.Instance, System.Xml.Int32ArrayHelperWithDictionaryString.Instance, System.Xml.Int64ArrayHelperWithDictionaryString.Instance, System.Xml.SingleArrayHelperWithDictionaryString.Instance, System.Xml.TimeSpanArrayHelperWithDictionaryString.Instance, System.prefix, System.Xml.XmlReader.Read(), System.type, and System.Xml.XmlDictionaryWriter.WriteElementNode().