using statement with comma

  • Thread starter Thread starter David Parker
  • Start date Start date
D

David Parker

using(dbconn=DatabaseHelper.CreateConnection("David_Projects")){

using(dbcmd=GetSQLSearchCommand(dbconn))

{

}

}
 
I asked a similar question a while back. The answer I got was to use
these constructs:

using (object1)
using (object2)
{
....
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top