they done, but vs recommends simplifying it that removes bracket enclosure. will it dispose them the same way or it takes care of it anyways?
+
does .Net take care of the connection , even if there is another conn.open(). Will it efficiently manage the opened connection pool?
(there were some doubts I had when I shifted from webforms which is stuck in c# 7.4 )
this is dot net feature. it's up to you use it or not. but keep in mind that result it's same no matter how it's written.
newer c# supports using var connection = new blabla();
Обсуждают сегодня