Is there a general rule for referencing a type from a different namespace. Do you consistently use :
using System.Drawing;
instead of defining it when needed:
System.Drawing.Graphics gr;
I tend to type the full namespace when I’m only “calling” it once. Is there any best practice about that ?
What I use, (and what I believe most developers use), is to always say
and reserve
only for places where there is a conflict with there being two
Graphicsdefined in different namespaces, and, even then, I’ll still rather use ausingto differentiate them: