title: I am trying to connect to SQL Server by using the using(){} .. but my Visual Studio shows the following error :
body: <p>Error</p>
  
  <blockquote>
    <p>Invalid token 'using' in class, struct, or interface member declaration        </p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Configuration;
  using System.Data;
  using System.Data.SqlClient;
  
  namespace BusinessLayer
  {
      class EmployeeBusinessLayer
      {
        String Connectionstring = ConfigurationManager.ConnectionStrings["DBConStr"].ConnectionString;
          using(SqlConnection con = new SqlConnection()){
          }
  
      }
  }
  </code></pre>