System.Xml.HtmlEncodedRawTextWriter.WriteProcessingInstruction C# (CSharp) Méthode

WriteProcessingInstruction() public méthode

public WriteProcessingInstruction ( string target, string text ) : void
target string
text string
Résultat void
        public override void WriteProcessingInstruction( string target, string text ) {
            Debug.Assert( target != null && target.Length != 0 && text != null );

            if ( trackTextContent && inTextContent != false ) { ChangeTextContentMark( false ); }

            bufChars[base.bufPos++] = (char) '<';
            bufChars[base.bufPos++] = (char) '?';
            base.RawText( target );
            bufChars[base.bufPos++] = (char) ' ';

            base.WriteCommentOrPi( text, '?' );

            base.bufChars[base.bufPos++] = (char) '>';

            if ( base.bufPos > base.bufLen ) {
                FlushBuffer();
            }
        }