Itenso.Rtf.Parser.RtfParser.ReadOneByte C# (CSharp) Method

ReadOneByte() private static method

private static ReadOneByte ( TextReader reader ) : int
reader TextReader
return int
        private static int ReadOneByte( TextReader reader )
        {
            int byteValue = reader.Read();
            if ( byteValue == -1 )
            {
                throw new RtfUnicodeEncodingException( Strings.UnexpectedEndOfFile );
            }
            return byteValue;
        }