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

◆ GetLocalName()

string System.Xml.Linq.XNodeReader.GetLocalName ( )
inlineprivate

Definition at line 398 of file XNodeReader.cs.

399 {
400 if (!IsInteractive)
401 {
402 return string.Empty;
403 }
404 if (_source is XElement xElement)
405 {
406 return xElement.Name.LocalName;
407 }
408 if (_source is XAttribute xAttribute)
409 {
410 return xAttribute.Name.LocalName;
411 }
412 if (_source is XProcessingInstruction xProcessingInstruction)
413 {
414 return xProcessingInstruction.Target;
415 }
416 if (_source is XDocumentType xDocumentType)
417 {
418 return xDocumentType.Name;
419 }
420 return string.Empty;
421 }

References System.Xml.Linq.XNodeReader._source, System.Xml.Dictionary, and System.Xml.Linq.XNodeReader.IsInteractive.