Hi,
I decided to take a closer look at the TextWriter and TextReader abstract
classes just for fun.
While poking around, I noticed that the TextWriter class includes an
'Encoding' property in its definition. To me, this sounds very logical
because the TextWriter is all about writing text and sooner or later you
will need to use a type of encoding that specifies how to write (persist)
the text.
On the other hand, the TextReader does not include an Encoding property in
its definition. To me, this is not logical because since the TextReader is
also all about reading text, I would think that sooner or later you will
need to know what encoding to use when translating (reading) the source info
into text.
So the question is, could someone enlighten me as to why the TextWriter
include and Encoding property on its definition but the TextReader does not?
Thank you.