I am not sure whether I need to call Flush()
on the used objects if I write something like this:
using (FileStream...)
using (CryptoStream...)
using (BinaryWriter...)
{
// do something
}
Are they always automatically flushed? When does the using
statement flush them and when it doesn’t (if that can happen)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…