I think my original reply answered your question. If by importing System it
also imported System.Data, System.Web, System.Web.UI,
System.Web.UI.WebControls, System.Windows, System.Windows.Forms and
everything else you'd defeat the purpose of the using statement. There
are a number of comflicting class names throughout the System namespace (and
others) and only specifying a specific namespace can resolve this ambiguity.
If the object is not specified by importnig the appropriate namespace, the
code won't compile. you cannot have any ambiguity when refering to
objects...the namespace must be clear and well defined. In the example I
gave bellow, I won't even be able to build the code.
Something else ot keep in mind is that you don't need to use using, for
example, the following is valid:
using System;
using System.Web.UI.Webcontrols;
public System.Windows.Form.Button b1= new System.Windows.Form.Button();
public Button b2 = new Button(); //refers to
System.Web.UI.WebControls.Button
or you could use aliases:
using form = System.Windows.Form;
using web = System.Web.UI.WebControls;
public form.Button b1 = new form.Button();
public web.Button b2 = new web.Button();
But again, all this only works because importing a namespace doesn't
automatically import everything beneath it...it would be chaos (absolute and
total chaos!!) if it did that
Karl