Using

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
gamito
Posts: 2
Joined: Mon 18 Feb 2008 17:13

Using

Post by 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

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by 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 ... 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

Post Reply