Using

Using

Postby gamito » Mon 18 Feb 2008 17:16

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
gamito
 
Posts: 2
Joined: Mon 18 Feb 2008 17:13

Postby Alexey.mdr » Tue 19 Feb 2008 09:42

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 ... n-us,VS.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 ... n-us,VS.80).aspx
Alexey.mdr
 
Posts: 729
Joined: Thu 13 Dec 2007 10:24


Return to dotConnect for MySQL