referencing controls

  • Thread starter Thread starter tim payne
  • Start date Start date
T

tim payne

Hi,

I have a quick .Net question. When referencing a web control in my code
behind page so that I can access it's methods and properties, is there any
speed/efficiency bonus to using the fully qualified reference, eg: protected
System.Web.UI.WebControls.ListBox regtypes instead of just: protected
ListBox regtypes? I would have thought that using the fully qualified
reference would be better, but I'd be interested to know if that's indeed
the case.

Thanks in advance,

Tim.
 
All such issues are taken care of at compile time. So it might help your
app to compile half a millisecond quicker, but will have zero effect on
runtime performance.
I'd suggest using the shorter notation; there is no significant advantage to
spelling out the entire namespace.
 
Back
Top