|
The reference indicates that you can use this assembly, and adding a using is to facilitate your use of this assembly, without writing the full name.
Such as:
After referencing System.Windows.Form, you can use the MessageBox.Show() method
But before you use System.Windows.Form, you must use it like this:
System.Windows.Form.MessageBox.Show()
When you add using System.Windows.Form in front of the code, you can easily use it directly:
MessageBox.Show()
The usage of "class.method"
Of course, I use static methods here, other methods need to instantiate the class first. Talk too much.
The simple point is: all you want to use must come from an assembly that you reference. Of course, many namespaces are often in an assembly, and you don’t need to refer to the same assembly multiple times for multiple namespaces. |
|