c# - Do you need to call Flush() on a Stream if you are using the “using” statement? -


i not sure whether need call stream.flush() if write this:

using (file stream...) using (cryptostream...) using (binarywriter...) {     // } 

is automatically flushed? when using statement flush stream , when doesn’t (if can happen)?

as leave using block’s scope, stream closed , disposed. close() calls flush(), should not need call manually.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -