I can already do:
using System.Windows.Forms;
Button b;
or:
System.Windows.Forms.Button b;
but I would like to do:
using System.Windows;
Forms.Button b;
(because Button is ambiguous with another namespace, and typing System.Windows.Forms.Button is too long).
However this gives me an error, how can I achieve this?
Thanks
A namespace alias perhaps:
using Forms = System.Windows.Forms;
The "using System.Windows" is now superfluous unless you use classes in that namespace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With