No, there is no difference. Once it is compiled into IL (intermediate
language), the fully qualified name is used, so:
this:
using System.Data.SqlClient;
void SomeFunc() {
SqlCommand cmd = new SqlCommand();
}
is the same as:
void SomeFunc() {
System.Data.SqlClient.SqlCommand cmd
= new System.Data.SqlClient.SqlCommand();
}
....except that one is longer to type. A reason not to use the "using"
construction is to avoid namespace clashes. Importing System.Windows.Forms
and System.Web.Forms (?) would have lots of clashes (think TextBox).
Scott
<ww*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,
I am interested whether there is a significant differense if I put on
top of my class using CustomNameSpace or If I call methods in my code
by CustomNameSpace.MyMethod()
I am interested because I have to use only one method from some
namespace and I do not want to make my program heavy.
Thanks