I have a TextReader
which has been created by a black-boxed system so I don't have any information about the source file from which it was created.
I need to pass this TextReader back into the black-boxed system inside an object which I am creating in my application.
However, I need to get some information from the TextReader to assist with the creation of my object.
I understand that you can't "rewind" a TextReader but is there a way to duplicate it so that I can read and discard a temporary copy without advancing the source TextReader at all?
I have had a look at this SO thread but I'm not sure if that relates to my requirement.
If it does, could someone please elaborate so I can understand?
Thanks in advance.