Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Using block

$
0
0


DbCommand dbCommand = null;
 using (dbCommand = GetDbCommand(db, sql))
 {
     FillUpdateCommandParams(ref db, ref dbCommand, entity);

}

Will dbcommand be disposed at the end even though i am passing it by ref?


Anonymous


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>