D
Daniel Goldman
Can anyone clarify the practical difference, if any, between
BinaryWriter.Seek() and BinaryWriter.BaseStream.Seek()? Under
what conditions might behavior of the two Seeks differ?
Or, can anyone answer: Why does BinaryWriter have it's
own Seek(), instead of using Seek() of contained Stream?
I am porting a desktop data analysis program to C#, and often
have both BinaryWriter / BinaryReader contain same FileStream.
I guess I should just use BinaryWriter.BaseStream.Seek(), since
it's there, but I'd like to know what is going on. I've read
various docs and books, and did not see the answer.
I know the methods don't override each other. Is the duplication
just a convenience? Is one or the other "preferred", and why?
And why is the offset argument int in one, long in the other??
Thanks,
Daniel Goldman
BinaryWriter.Seek() and BinaryWriter.BaseStream.Seek()? Under
what conditions might behavior of the two Seeks differ?
Or, can anyone answer: Why does BinaryWriter have it's
own Seek(), instead of using Seek() of contained Stream?
I am porting a desktop data analysis program to C#, and often
have both BinaryWriter / BinaryReader contain same FileStream.
I guess I should just use BinaryWriter.BaseStream.Seek(), since
it's there, but I'd like to know what is going on. I've read
various docs and books, and did not see the answer.
I know the methods don't override each other. Is the duplication
just a convenience? Is one or the other "preferred", and why?
And why is the offset argument int in one, long in the other??
Thanks,
Daniel Goldman