It is always proper to close it when it’s finished. Wrapping it up in a using statement like you did is the best way to ensure that it’s disposed when not being called directly.
3 Likes
It is always proper to close it when it’s finished. Wrapping it up in a using statement like you did is the best way to ensure that it’s disposed when not being called directly.