Suggestion for code samples

I love to read your code samples.  I get a real kick out of them.  I love to see what other people are doing and how they are doing it.  I would like to suggest that you add one thing to your code samples (I am just as guilty as everyone else).  For your .NET code samples, please don't forget to add in namespaces, such as including the “using namespace” commands so that we can see what namespaces your code is using.  It can be frustrating to look at some sample code and wonder why it doesn't work for you because you don't know what namespace the objects come from.

Why am I saying this?  Well, I was looking into some Whidbey stuff last night regarding the database provider factory.  I was having a devil of a time trying to figure out what namespace the DbProviderFactory() was coming from.  It took me until this morning to find out it is in System.Data.Common. 

Wally “One of the biggest offenders” McClure

No Comments