No, it's not.
using
ensures that Dispose()
will be called, which in turn calls the Close()
method.
You can assume that all kinds of Streams are getting closed by the using
statement.
From MSDN:
When you use an object that accesses unmanaged resources, such as a StreamWriter, a good practice is to create the instance with a using statement. The using statement automatically closes the stream and calls Dispose on the object when the code that is using it has completed.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…