I need to produce my own DecoderFallback and DecoderFallbackBuffer classes to implement some custom stream decoding.
I have found that the stream reader making use of it is calling GetNextChar() repeatedly even when my specilizaed DecoderFallbackBuffer.Remaining property returns 0 to indicate that there no more characters to return.
The end result is that the stream reader gets into an infinite loop.
Why is this happening?