In order to get something that would compile in VS2005 I ended up with:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
namespace c_sharp_class_library.Bugs
{
class bug_live_outline
{
public void Foo()
{
using(SqlConnection cn = new SqlConnection(""))
{}
}
public void Bar()
{
}
}
}
and I am not seeing any problems with live outline with this code. Can you try this code on your system?