System.Xml.Xsl.Runtime.XmlQueryOutput.WriteEndProcessingInstruction C# (CSharp) Method

WriteEndProcessingInstruction() public method

Before writing a processing instruction, perform various checks to ensure well-formedness.
public WriteEndProcessingInstruction ( ) : void
return void
        public void WriteEndProcessingInstruction() {
            Debug.Assert(this.xstate == XmlState.WithinPI, "WriteEndProcessingInstruction cannot be called in the " + this.xstate + " state.");

            Writer.WriteProcessingInstruction(this.piTarget, this.piText);

            this.xstate = XmlState.WithinContent;
            this.depth--;

            // Xml state transitions
            if (this.depth == 0)
                EndTree();
        }