Most of the examples of the using statement in C# declare the object inside the brackets like this:

```
using (SqlCommand cmd = new SqlCommand("SELECT * FROM Customers", connection))
{
   // Code goes here
}

```

What happens if I use the using statement in the following way with the object declared outside the using statement:

```
SqlCommand cmd = new SqlCommand("SELECT * FROM Customers", connection);
using (cmd)
{
   // Code goes here
}

```

Is it a bad idea to use the using statement in the way I have in the second example and why?