Newbie C# question about using & namespaces:
using System; using System.Data; namespace Granite2 { class Class1 { System.Data.SqlClient.SqlConnection Conn1; SqlClient.SqlConnection Conn2; } } Conn1 line, not surprisingly, compiles fine. Conn2 has an error "The type or namespace 'SqlClient' can't be found".
Why is this? I thought having "using System.Data" in there would mean I could reference SqlClient without the full qualifier.
I'm perplexed because I'm converting VB.NET to C# and the namespace works in VB.NET. Obviously some nuance I'm not aware of here.
Class1is in namespaceSystem.Datawhich is not the case here.