using (DbConnection conn = new DbConnection()) { // do stuff with database }
Will the using block call conn.Close()?<
using
conn.Close()
surely yes because it will dispose the connection and before disposing the inner logic of the connection calls the close.