referencing controls

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.
 
S

Steve C. Orr, MCSD

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top