I can add the statement using System.Configuration;
to my code using intellisense, but I can't get any intellisense when I access the type ConfigurationManager
.
Why does intellisense work when entering the using directive, but doesn't work when specifying a type from that namespace?
using System.Configuration;
namespace TestDBMSConnection
{
class Program
{
static void Main(string[] args)
{
var dataProviderName = ConfigurationManager.AppSettings["provider"];
}
}
}
I can fix the issue by adding a reference to System.Configuration, but I don't understand why I don't need to do that for intellisense to work for the using directive.