When use the Using statement and the {} Scope modifier, how do you get a value outside of it? This feels like an anonymous function in procedural code but it’s not.
using (SqlConnection m_DBCon = new Something())
{
int x = 1;
}
{
int y = 3;
}
x; // not found
y; // not found
Declare the variable you need before the using block, and then assign it inside.