NServiceBus.XmlSanitizingStream.Read C# (CSharp) Method

Read() public method

public Read ( ) : int
return int
        public override int Read()
        {
            // Read each character, skipping over characters that XML has prohibited

            int nextCharacter;

            do
            {
                // Read a character

                if ((nextCharacter = base.Read()) == EOF)
                {
                    // If the character denotes the end of the file, stop reading

                    break;
                }
            }

                // Skip the character if it's prohibited, and try the next
	
            while (!IsLegalXmlChar(nextCharacter));

            return nextCharacter;
        }

Same methods

XmlSanitizingStream::Read ( char buffer, int index, int count ) : int