How to add using keyword to multiple assignments
<p>My code is </p>

<pre><code>           SqlDataAdapter adapter;
            if (string.IsNullOrEmpty(Lk_proc))
            {
                using (adapter = new SqlDataAdapter("SELECT *fromtbl, _sqlConn))
                {
                    adapter.SelectCommand.CommandType = CommandType.Text;
                }
            }
            else
            {
                using (SqlCommand sqlCmd = new SqlCommand("usp_test", _sqlConne))
                {
                    sqlCmd.CommandType = CommandType.StoredProcedure;


                    sqlPar = new SqlParameter("@test_e", SqlDbType.NVarChar, 255);
                    sqlPar.Value = value;
                    sqlCmd.Parameters.Add(sqlPar);

                    adapter = new SqlDataAdapter(sqlCmd);
                }
            }
            using (DataTable dt = new DataTable())
            {
                adapter.Fill(dt);
            }
</code></pre>

<p>My requirement is: I want to add <code>using</code> keyword for the <code>DataAdapter</code> in <code>else</code> condition in order to solve warnings while debugging.  i.e to the </p>

<pre><code>    using(adapter = new SqlDataAdapter(sqlCmd))
     {
     }
</code></pre>

<p>How can I achieve this?</p>
