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

◆ GetWhitespaceType()

XmlNodeType System.Xml.XmlTextReaderImpl.GetWhitespaceType ( )
inlineprivate

Definition at line 7115 of file XmlTextReaderImpl.cs.

7116 {
7117 if (_whitespaceHandling != WhitespaceHandling.None)
7118 {
7119 if (_xmlContext.xmlSpace == XmlSpace.Preserve)
7120 {
7121 return XmlNodeType.SignificantWhitespace;
7122 }
7123 if (_whitespaceHandling == WhitespaceHandling.All)
7124 {
7125 return XmlNodeType.Whitespace;
7126 }
7127 }
7128 return XmlNodeType.None;
7129 }
WhitespaceHandling _whitespaceHandling

References System.Xml.XmlTextReaderImpl._whitespaceHandling, System.Xml.XmlTextReaderImpl._xmlContext, and System.Xml.XmlTextReaderImpl.XmlContext.xmlSpace.

Referenced by System.Xml.XmlTextReaderImpl.GetTextNodeType(), System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace(), and System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespaceAsync().