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

◆ WriteArrayNode() [1/3]

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

Definition at line 529 of file XmlDictionaryWriter.cs.

530 {
531 if (type == typeof(bool))
532 {
533 BooleanArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
534 return;
535 }
536 if (type == typeof(short))
537 {
538 Int16ArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
539 return;
540 }
541 if (type == typeof(int))
542 {
543 Int32ArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
544 return;
545 }
546 if (type == typeof(long))
547 {
548 Int64ArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
549 return;
550 }
551 if (type == typeof(float))
552 {
553 SingleArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
554 return;
555 }
556 if (type == typeof(double))
557 {
558 DoubleArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
559 return;
560 }
561 if (type == typeof(decimal))
562 {
563 DecimalArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
564 return;
565 }
566 if (type == typeof(DateTime))
567 {
568 DateTimeArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
569 return;
570 }
571 if (type == typeof(Guid))
572 {
573 GuidArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
574 return;
575 }
576 if (type == typeof(TimeSpan))
577 {
578 TimeSpanArrayHelperWithString.Instance.WriteArray(this, prefix, localName, namespaceUri, reader);
579 return;
580 }
582 reader.Read();
583 }
void WriteElementNode(XmlDictionaryReader reader, bool defattr)

References System.Xml.Dictionary, System.Xml.BooleanArrayHelperWithString.Instance, System.Xml.DateTimeArrayHelperWithString.Instance, System.Xml.DecimalArrayHelperWithString.Instance, System.Xml.DoubleArrayHelperWithString.Instance, System.Xml.GuidArrayHelperWithString.Instance, System.Xml.Int16ArrayHelperWithString.Instance, System.Xml.Int32ArrayHelperWithString.Instance, System.Xml.Int64ArrayHelperWithString.Instance, System.Xml.SingleArrayHelperWithString.Instance, System.Xml.TimeSpanArrayHelperWithString.Instance, System.prefix, System.Xml.XmlReader.Read(), System.type, and System.Xml.XmlDictionaryWriter.WriteElementNode().

Referenced by System.Xml.XmlDictionaryWriter.WriteArrayNode(), and System.Xml.XmlDictionaryWriter.WriteNode().