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

◆ ReadIntoDocument()

bool System.Xml.Linq.XNodeReader.ReadIntoDocument ( XDocument d)
inlineprivate

Definition at line 1072 of file XNodeReader.cs.

1073 {
1074 if (d.content is XNode xNode)
1075 {
1076 _source = xNode.next;
1077 return true;
1078 }
1079 if (d.content is string { Length: >0 } text)
1080 {
1081 _source = text;
1082 _parent = d;
1083 return true;
1084 }
1085 return ReadToEnd();
1086 }

References System.Xml.Linq.XNodeReader._parent, System.Xml.Linq.XNodeReader._source, System.Xml.Dictionary, System.Xml.Linq.XNodeReader.ReadToEnd(), and System.text.

Referenced by System.Xml.Linq.XNodeReader.Read().