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

◆ MoveToNextContentNodeAsync()

async Task< bool > System.Xml.ReadContentAsBinaryHelper.MoveToNextContentNodeAsync ( bool moveIfOnContentNode)
inlineprivate

Definition at line 722 of file ReadContentAsBinaryHelper.cs.

723 {
724 do
725 {
726 switch (_reader.NodeType)
727 {
728 case XmlNodeType.Attribute:
729 return !moveIfOnContentNode;
730 case XmlNodeType.Text:
731 case XmlNodeType.CDATA:
732 case XmlNodeType.Whitespace:
733 case XmlNodeType.SignificantWhitespace:
735 {
736 return true;
737 }
738 goto IL_00a5;
739 case XmlNodeType.EntityReference:
741 {
742 break;
743 }
745 goto IL_00a5;
746 case XmlNodeType.ProcessingInstruction:
747 case XmlNodeType.Comment:
748 case XmlNodeType.EndEntity:
749 goto IL_00a5;
750 }
751 return false;
752 IL_00a5:
753 moveIfOnContentNode = false;
754 }
756 return false;
757 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
virtual bool CanResolveEntity
Definition XmlReader.cs:118
virtual Task< bool > ReadAsync()
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.ReadContentAsBinaryHelper._reader, System.Xml.XmlReader.CanResolveEntity, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.ReadAsync(), and System.Xml.XmlReader.ResolveEntity().

Referenced by System.Xml.ReadContentAsBinaryHelper.FinishAsync(), System.Xml.ReadContentAsBinaryHelper.InitAsync(), System.Xml.ReadContentAsBinaryHelper.InitOnElementAsync(), and System.Xml.ReadContentAsBinaryHelper.ReadContentAsBinaryAsync().