If I create a synchronized TextWriter with TextWriter.Sync hronized(...), how
do I make sure that all the writes are done before I Close()? Do I have to
invent that synchronization mechanism myself? If I do that, then I'm going
to have to be locking some sort of "streamIsOp en" resource and if I do that,
then I don't need a synchronized TextWriter which makes me wonder, what good
is TextWriter.Sync hronized()?
do I make sure that all the writes are done before I Close()? Do I have to
invent that synchronization mechanism myself? If I do that, then I'm going
to have to be locking some sort of "streamIsOp en" resource and if I do that,
then I don't need a synchronized TextWriter which makes me wonder, what good
is TextWriter.Sync hronized()?
Comment