Is all "use" required or would it be enough to have only the first?
If any object that you use implements IDisposable , you can use the using statement, which will automatically delete your object, or you can manually delete (close for any threads, etc.) your object without using , just calling Dispose() .
So, for all objects that might be located better, use the using statement.
source share