Page 1 of 1

Using

Posted: Mon 18 Feb 2008 17:16
by gamito
Hi,

I'm a newbie at MyDirect .NET

What is the "using" statement I have to put in my code file to use MyDirect .Net ?

Like this, for example:
using System.Data.SqlClient;

Any help would be appreciated.

Warm Regards,
Mário Gamito

Posted: Tue 19 Feb 2008 09:42
by Alexey.mdr
The using keyword has two major uses:
As a directive, when it is used to create an alias for a namespace or to import types defined in other namespaces.
See using Directive:
http://msdn2.microsoft.com/ru-ru/librar ... S.80).aspx
As a statement, when it defines a scope at the end of which an object will be disposed.
See using Statement:
http://msdn2.microsoft.com/ru-ru/librar ... S.80).aspx