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

◆ LinePosition

int IXmlLineInfo. System.Xml.Linq.XNodeReader.LinePosition
getprivate

Implements System.Xml.IXmlLineInfo.

Definition at line 333 of file XNodeReader.cs.

334 {
335 get
336 {
337 if (IsEndElement)
338 {
339 if (_source is XElement xElement)
340 {
341 LineInfoEndElementAnnotation lineInfoEndElementAnnotation = xElement.Annotation<LineInfoEndElementAnnotation>();
343 {
344 return lineInfoEndElementAnnotation.linePosition;
345 }
346 }
347 }
348 else if (_source is IXmlLineInfo xmlLineInfo)
349 {
350 return xmlLineInfo.LinePosition;
351 }
352 return 0;
353 }
354 }