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

◆ LineNumber

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

Implements System.Xml.IXmlLineInfo.

Definition at line 310 of file XNodeReader.cs.

311 {
312 get
313 {
314 if (IsEndElement)
315 {
316 if (_source is XElement xElement)
317 {
318 LineInfoEndElementAnnotation lineInfoEndElementAnnotation = xElement.Annotation<LineInfoEndElementAnnotation>();
320 {
321 return lineInfoEndElementAnnotation.lineNumber;
322 }
323 }
324 }
325 else if (_source is IXmlLineInfo xmlLineInfo)
326 {
327 return xmlLineInfo.LineNumber;
328 }
329 return 0;
330 }
331 }