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

◆ InitOnElement()

bool System.Xml.ReadContentAsBinaryHelper.InitOnElement ( )
inlineprivate

Definition at line 271 of file ReadContentAsBinaryHelper.cs.

272 {
274 _reader.Read();
275 if (isEmptyElement)
276 {
277 return false;
278 }
280 {
281 if (_reader.NodeType != XmlNodeType.EndElement)
282 {
283 throw new XmlException(System.SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
284 }
285 _reader.Read();
286 return false;
287 }
288 _state = State.InReadElementContent;
289 _isEnd = false;
290 return true;
291 }
static string Xml_InvalidNodeType
Definition SR.cs:88
Definition SR.cs:7
bool MoveToNextContentNode(bool moveIfOnContentNode)
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.ReadContentAsBinaryHelper._isEnd, System.Xml.ReadContentAsBinaryHelper._reader, System.Xml.ReadContentAsBinaryHelper._state, System.Xml.Dictionary, System.Xml.XmlReader.IsEmptyElement, System.Xml.ReadContentAsBinaryHelper.MoveToNextContentNode(), System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Read(), System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.

Referenced by System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBase64(), and System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBinHex().