using (FileStream fileStream = new FileStream(path)) { // do something }
Now I know the using pattern is an implementation of IDisposable
using calls Dispose() only. The Dispose() method might call Close() if that is how it is implemented.