NServiceBus.XmlSanitizingStream.Peek C# (CSharp) Method

Peek() public method

public Peek ( ) : int
return int
        public override int Peek()
        {
            // Return the next legal XML character without reading it 

            int nextCharacter;

            do
            {
                // See what the next character is 

                nextCharacter = base.Peek();
            } while
                (
                // If it's prohibited XML, skip over the character in the stream
                // and try the next.
	
                !IsLegalXmlChar(nextCharacter) &&
                (nextCharacter = base.Read()) != EOF
                );

            return nextCharacter;
        } // method