where should i put?
using System.Data;
using System.OleDb;
Printable View
where should i put?
using System.Data;
using System.OleDb;
using statements must always go at the top of your file. before any class or namespace declarations...
Code:using System;
using System.Data;
using System.OleDb;
//etc.
namespace MyNamespace {
class MyClass {
}
}
Actually you can place it inside a namespace. But practices are top most on every file as effekt26 said.
Hmmm, I wasn't aware of that. Everything I have read said at the top, above classes...but mentioned nothing about namespaces...Quote:
Originally Posted by nebulom
I'll keep that in mind.
Thanks nebulom!
In software programming it is good practice to follow a standard format. Normally those references are added top of the code, easy to find what type of application is there.